LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cfengine-2.1.11-nopriv.dif of Package cfengine (Project home:danci1973)

diff -Nur cfengine-2.1.11-orig/src/cfkey.c cfengine-2.1.11/src/cfkey.c
--- cfengine-2.1.11-orig/src/cfkey.c	2004-09-20 15:47:47.000000000 +0200
+++ cfengine-2.1.11/src/cfkey.c	2010-02-03 17:37:15.000000000 +0100
@@ -149,6 +149,8 @@
 umask(077);
  /* XXX Initialize workdir for non privileged users */
 
+Debug("WORKDIR = %s\n", WORKDIR);
+
  strcpy(CFWORKDIR,WORKDIR);
 
  if (geteuid() > 0)
diff -Nur cfengine-2.1.11-orig/src/cfrun.c cfengine-2.1.11/src/cfrun.c
--- cfengine-2.1.11-orig/src/cfrun.c	2004-09-20 15:47:48.000000000 +0200
+++ cfengine-2.1.11/src/cfrun.c	2010-02-03 17:38:08.000000000 +0100
@@ -231,10 +231,6 @@
     Debug("Class item: %s\n",ip->name);
     }
 
- ReadCfrunConf(); 
- 
- GetNameInfo();
- 
 /* 
 if (uname(&VSYSNAME) == -1)
    {
@@ -261,6 +257,7 @@
 
  strcpy(CFWORKDIR,WORKDIR);
 
+
  if (getuid() > 0)
     {
     char *homedir;
@@ -271,9 +268,13 @@
        }
     }
 
+ ReadCfrunConf(); 
+ 
+ GetNameInfo();
+ 
+umask(077);
 /* Read hosts file */
 
-umask(077);
 strcpy(VLOCKDIR,CFWORKDIR);
 strcpy(VLOGDIR,CFWORKDIR);