Explorar o código

* Fixed bug in readconf() regarding uname/uid

svn: 1340
Bryan Drewery %!s(int64=21) %!d(string=hai) anos
pai
achega
7a84846d89
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/conf.c

+ 3 - 1
src/conf.c

@@ -585,12 +585,14 @@ readconf(char *fname, int bits)
             conffile.pscloak = atoi(line);
 
         } else if (!strcmp(option, "uid")) {    /* new method uid */
-          if (!conffile.uid && egg_isdigit(line[0]))
+          if (egg_isdigit(line[0]))
             conffile.uid = atoi(line);
 
         } else if (!strcmp(option, "uname")) {  /* new method uname */
           if (!conffile.uname)
             conffile.uname = strdup(line);
+          else
+            str_redup(&conffile.uname, line);
 
         } else if (!strcmp(option, "watcher")) {
           if (egg_isdigit(line[0]))