]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Handle /dev/stderr directly instead of open()ing.
authorTimo Sirainen <tss@iki.fi>
Tue, 4 Mar 2003 03:59:44 +0000 (05:59 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 4 Mar 2003 03:59:44 +0000 (05:59 +0200)
--HG--
branch : HEAD

src/lib/failures.c

index 1c70b13100bf09b84c2b441cdc072f7a40176ad0..c363021dba1526601c7898b56c96571dc7214aa1 100644 (file)
@@ -344,7 +344,7 @@ static void open_log_file(FILE **file, const char *path)
        if (*file != NULL && *file != stderr)
                (void)fclose(*file);
 
-       if (path == NULL)
+       if (path == NULL || strcmp(path, "/dev/stderr") == 0)
                *file = stderr;
        else {
                *file = fopen(path, "a");