]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/1.36.2/1.36.2-console.patch
Cleanup patches a bit
[bacula/bacula] / bacula / patches / 1.36.2 / 1.36.2-console.patch
1
2  This patch causes the output directed to a file to be
3  flushed after every line. This is a bit overkill, IMO, but
4  a user complained about it.
5
6  Apply to 1.36.2 with:
7
8  cd <bacula>
9  patch -p0 <1.36.2-console.patch
10  make
11  ...
12
13 Index: src/console/console.c
14 ===================================================================
15 RCS file: /cvsroot/bacula/bacula/src/console/console.c,v
16 retrieving revision 1.53.6.1
17 diff -u -b -r1.53.6.1 console.c
18 --- src/console/console.c       25 Feb 2005 09:47:06 -0000      1.53.6.1
19 +++ src/console/console.c       16 Mar 2005 11:36:43 -0000
20 @@ -748,10 +748,11 @@
21      }
22  #else
23      fputs(buf, output);
24 +    fflush(output);
25      if (tee) {
26         fputs(buf, stdout);
27      }
28 -    if (output == stdout || tee) {
29 +    if (output != stdout || tee) {
30         fflush(stdout);
31      }
32  #endif