Explorar el Código

* Now replacing ~ with homedir after readconf()

svn: 1848
Bryan Drewery hace 21 años
padre
commit
5de394a884
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      src/conf.c
  2. 1 0
      src/main.c

+ 1 - 0
src/conf.c

@@ -252,6 +252,7 @@ confedit()
   if (!can_stat(tmpconf.file))
     fatal("Error reading new config file", 0);
   readconf((const char *) tmpconf.file, 0);               /* read cleartext conf tmp into &settings */
+  fix_tilde(&conf.binpath);
   unlink(tmpconf.file);
   conf_to_bin(&conf, 0);	/* will exit */
   exit(0);                      /* never reached */

+ 1 - 0
src/main.c

@@ -290,6 +290,7 @@ static void dtx_arg(int argc, char *argv[])
         exit(0);
       case '4':
         readconf(optarg, CONF_ENC);
+        fix_tilde(&conf.binpath);
         parseconf(0);
         conf_to_bin(&conf, 1);		/* this will exit() in write_settings() */
       case 'B':