gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r983 - in GNUnet: contrib src/conf


From: durner
Subject: [GNUnet-SVN] r983 - in GNUnet: contrib src/conf
Date: Fri, 24 Jun 2005 11:58:12 -0700 (PDT)

Author: durner
Date: 2005-06-24 11:58:08 -0700 (Fri, 24 Jun 2005)
New Revision: 983

Modified:
   GNUnet/contrib/config-client.in
   GNUnet/src/conf/confdata.c
Log:
fix

Modified: GNUnet/contrib/config-client.in
===================================================================
--- GNUnet/contrib/config-client.in     2005-06-24 18:05:48 UTC (rev 982)
+++ GNUnet/contrib/config-client.in     2005-06-24 18:58:08 UTC (rev 983)
@@ -5,7 +5,7 @@
   config config-client.in_CONF_DEF_DIR
   string "Default configuration directory"
   depends on RARE-CLIENT
-  default "/etc/"
+  default "~/.gnunet/"
   help
        This is the directory where gnunet-setup will store the configuration
        file by default.

Modified: GNUnet/src/conf/confdata.c
===================================================================
--- GNUnet/src/conf/confdata.c  2005-06-24 18:05:48 UTC (rev 982)
+++ GNUnet/src/conf/confdata.c  2005-06-24 18:58:08 UTC (rev 983)
@@ -270,6 +270,7 @@
        char **tempfiles = NULL;
        int num_tempfiles = 0;
        int idx;
+       char *tmp;
 
   sym_clear_all_valid();
 
@@ -339,6 +340,10 @@
                                                }
                                        }
                                        
+                                       tmp = expandFileName(dirname);
+                                       strlcpy(dirname, tmp, 128);
+                                       free(tmp);
+                                       
                                        /* Create a temporary filename */
                                        sprintf(newname,
                                                "%s%s-%u.tmp",





reply via email to

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