OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/config.c versions 1.5 and 1.6
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/config.c 1.5 -> 1.6

--- config.c     2000/12/15 16:16:07     1.5
+++ config.c     2000/12/15 17:27:53     1.6
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v $
-   $Revision: 1.5 $
+   $Revision: 1.6 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -20,7 +20,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <pwd.h>
 
 #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);

CVSTrac 2.0.1