--- log.c.orig 2011-10-25 17:04:48.675358592 +0200 +++ src/log.c 2011-10-25 17:14:42.400818038 +0200 @@ -541,12 +541,19 @@ { 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) + { + fprintf (stderr, "%s: %s: %s\n", exec_name, file, strerror (errno)); + exit (1); + } + } + else + { + logfp = stdout; + } } else {