gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6365 - GNUnet/src/applications/fs/tools


From: gnunet
Subject: [GNUnet-SVN] r6365 - GNUnet/src/applications/fs/tools
Date: Sun, 17 Feb 2008 23:07:22 -0700 (MST)

Author: grothoff
Date: 2008-02-17 23:07:21 -0700 (Sun, 17 Feb 2008)
New Revision: 6365

Modified:
   GNUnet/src/applications/fs/tools/gnunet-auto-share.c
Log:
report log trouble

Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-auto-share.c        2008-02-18 
06:04:55 UTC (rev 6364)
+++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c        2008-02-18 
06:07:21 UTC (rev 6365)
@@ -109,7 +109,7 @@
       break;
     case GNUNET_FSUI_upload_started:
     case GNUNET_FSUI_upload_stopped:
-    case GNUNET_FSUI_upload_suspended:
+    case GNUNET_FSUI_upload_suspended:      
     case GNUNET_FSUI_upload_resumed:
       break;
     default:
@@ -476,6 +476,16 @@
                                                   "/gnunet-auto-share.log",
                                                   &log_file_name);
       myout = fopen (log_file_name, "a");
+      if (myout == NULL)
+       {
+         fprintf(stderr,
+                 "Could not open logfile `%s': %s\n",
+                 log_file_name,
+                 strerror(errno));
+         GNUNET_free (log_file_name);
+         errorCode = -1;
+         goto end;
+       }
       GNUNET_free (log_file_name);
 
       GNUNET_GC_get_configuration_value_filename (cfg,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]