Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 1134671058f89cabf3a10de2e4e055c9 > files > 1

wget-1.10.2-6mdv2008.0.src.rpm

--- 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