Index: ossp-pkg/petidomo/config.c RCS File: /v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v' 2>/dev/null --- config.c 2000/12/15 16:16:07 1.5 +++ config.c 2000/12/15 17:27:53 1.6 @@ -20,7 +20,6 @@ #include #include #include -#include #include "liblists/lists.h" #include "libconfigfile/configfile.h" @@ -40,7 +39,6 @@ int InitPetidomo(void) { - struct passwd * pwd; char * basedir = "/usr/local/petidomo"; int rc; @@ -66,18 +64,6 @@ ListConfigs = InitList(NULL); - /* First of all, determine the home directory of the "petidomo" - user. This will be our base directory for all operations. */ - - pwd = getpwnam("petidomo"); - if (pwd != NULL) { - if (strcmp(basedir, pwd->pw_dir) != 0) - basedir = xstrdup(pwd->pw_dir); /* Replace the default above. */ - endpwent(); - } - else - syslog(LOG_WARNING, "User \"petidomo\" not found."); - /* chdir() into the base directory. */ rc = chdir(basedir);