X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fsecure-mount.c;h=65f4a54c7a364f485c3bdbd2171109bc1049bd8c;hb=feda714e8feec0c6711f6d68326819e03f16c4b4;hp=bc90769ff7a50316ddc67733a7ea5259c126dee5;hpb=19b505f485927357115dcd74d4576f5c7f4dd995;p=util-vserver.git diff --git a/util-vserver/src/secure-mount.c b/util-vserver/src/secure-mount.c index bc90769..65f4a54 100644 --- a/util-vserver/src/secure-mount.c +++ b/util-vserver/src/secure-mount.c @@ -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; } }