Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > ab2120b567a472e979d1232c4cc6a624 > files > 6

wget-1.14-2.mga3.src.rpm

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