Blob Blame History Raw
diff -up whatsup-1.7/src/whatsup/whatsup.c.orig whatsup-1.7/src/whatsup/whatsup.c
--- whatsup-1.7/src/whatsup/whatsup.c.orig	2008-04-25 19:54:51.000000000 +0200
+++ whatsup-1.7/src/whatsup/whatsup.c	2008-04-25 19:55:07.000000000 +0200
@@ -1171,7 +1171,7 @@ _log_mode(void)
 
   if (log_file)
     {
-      if ((log_file_fd = open (log_file, O_WRONLY | O_CREAT), 600) < 0)
+      if (log_file_fd = open (log_file, O_WRONLY | O_CREAT, 600) < 0)
         err_exit("error opening log_file = %s: %s", log_file, strerror(errno));
     }
   else