use more verbose perror()
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 25 Feb 2004 11:45:34 +0000 (11:45 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 25 Feb 2004 11:45:34 +0000 (11:45 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@995 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/chcontext.c
util-vserver/src/secure-mount.c

index 4c4c529..0052d50 100644 (file)
@@ -397,7 +397,7 @@ int main (int argc, char *argv[])
     execvp (argv[optind],argv+optind);
     doSyncStage2(p);
 
-    perror("chcontext: execvp()");
+    PERROR_Q("chcontext: execvp", argv[optind]);
     exit(255);
   }
 
index bc90769..65f4a54 100644 (file)
@@ -338,7 +338,7 @@ callExternalMount(struct MountInfo const *mnt)
 
   if (pid==0) {
     execv(mount_prog, const_cast(char **)(argv));
-    perror("secure-mount: execv()");
+    PERROR_Q("secure-mount: execv", mount_prog);
     exit(1);
   }
 
@@ -359,7 +359,7 @@ mountSingle(struct MountInfo const *mnt, struct Options const *opt)
   
   if (opt->rootdir!=0) {
     if (chdir(opt->rootdir)==-1) {
-      perror("secure-mount: chdir()");
+      PERROR_Q("secure-mount: chdir", opt->rootdir);
       return false;
     }
 
@@ -368,14 +368,14 @@ mountSingle(struct MountInfo const *mnt, struct Options const *opt)
 
   if (opt->is_secure) {
     if (chdirSecure(dir)==-1) {
-      perror("secure-mount: chdirSecure()");
+      PERROR_Q("secure-mount: chdirSecure", dir);
       return false;
     }
   }
   else {
     if (*dir!='\0' &&
        chdir(dir)==-1) {
-      perror("secure-mount: chdir()");
+      PERROR_Q("secure-mount: chdir", dir);
       return false;
     }
   }