--- src/log.c.logstdout 2005-05-15 15:15:08.000000000 +0200 +++ src/log.c 2005-07-28 22:57:27.000000000 +0200 @@ -537,11 +537,18 @@ { if (file) { - logfp = fopen (file, appendp ? "a" : "w"); - if (!logfp) - { - fprintf (stderr, "%s: %s: %s\n", exec_name, file, strerror (errno)); - exit (1); + if (strcmp(file, "-")) + { + logfp = fopen (file, appendp ? "a" : "w"); + if (!logfp) + { + perror (opt.lfilename); + exit (1); + } + } + else + { + logfp = stdout; } } else