]>
Commit | Line | Data |
---|---|---|
c0dfb969 | 1 | --- amanda-2.4.1p1/common-src/debug.c.tim2 Tue Jan 11 11:02:43 2000 |
2 | +++ amanda-2.4.1p1/common-src/debug.c Tue Jan 11 11:04:36 2000 | |
3 | @@ -42,7 +42,8 @@ | |
4 | static FILE *db_file = NULL; | |
5 | #else | |
6 | int db_fd = 2; | |
7 | - static FILE *db_file = stderr; | |
8 | + /* stderr cannot be assumed to be constant */ | |
9 | + static FILE *db_file = NULL; | |
10 | #endif | |
11 | ||
12 | #ifndef DEBUG_DIR | |
13 | @@ -56,7 +57,10 @@ | |
14 | { | |
15 | va_list argp; | |
16 | ||
17 | - if(db_fd == -1) return; | |
18 | + if(db_fd == NULL) { | |
19 | + if (db_fd == -1) return; | |
20 | + if (db_fd == 2) db_file = stderr; | |
21 | + } | |
22 | ||
23 | arglist_start(argp, format); | |
24 | vfprintf(db_file, format, argp); |