execvp (argv[optind],argv+optind);
doSyncStage2(p);
- perror("chcontext: execvp()");
+ PERROR_Q("chcontext: execvp", argv[optind]);
exit(255);
}
if (pid==0) {
execv(mount_prog, const_cast(char **)(argv));
- perror("secure-mount: execv()");
+ PERROR_Q("secure-mount: execv", mount_prog);
exit(1);
}
if (opt->rootdir!=0) {
if (chdir(opt->rootdir)==-1) {
- perror("secure-mount: chdir()");
+ PERROR_Q("secure-mount: chdir", opt->rootdir);
return false;
}
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;
}
}