gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r7225 - GNUnet/src/applications/fs/tools
Date: Sat, 14 Jun 2008 19:04:25 -0600 (MDT)

Author: grothoff
Date: 2008-06-14 19:04:25 -0600 (Sat, 14 Jun 2008)
New Revision: 7225

Modified:
   GNUnet/src/applications/fs/tools/gnunet-auto-share.c
Log:
use absolute path

Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-auto-share.c        2008-06-15 
00:46:32 UTC (rev 7224)
+++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c        2008-06-15 
01:04:25 UTC (rev 7225)
@@ -839,22 +839,21 @@
     {
       char *dirs;
       unsigned int dirs_len;
+      char *fullname;
 
       GNUNET_GC_get_configuration_value_string (cfg, "GNUNET-AUTO-SHARE",
                                                 "DIRS", "", &dirs);
       dirs_len = strlen (dirs);
-
       while (i < argc)
         {
-          dirs =
-            (char *) GNUNET_realloc (dirs, dirs_len + strlen (argv[i]) + 2);
+         fullname = GNUNET_expand_file_name(ectx,
+                                            argv[i]);
+          dirs = GNUNET_realloc (dirs, dirs_len + strlen (fullname) + 2);
           if (dirs_len > 0)
             strcat (dirs, ";");
-          strcat (dirs, argv[i]);
-
+          strcat (dirs, fullname);
           i++;
         }
-
       GNUNET_GC_set_configuration_value_string (cfg, ectx,
                                                 "GNUNET-AUTO-SHARE", "DIRS",
                                                 dirs);





reply via email to

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