Always report the applet name when doing error reporting.
This commit is contained in:
parent
e58771e73c
commit
be84cd4ef6
42 changed files with 141 additions and 144 deletions
|
@ -47,8 +47,7 @@ int chroot_main(int argc, char **argv)
|
|||
argv++;
|
||||
|
||||
if (chroot(*argv) || (chdir("/"))) {
|
||||
fatalError("chroot: cannot change root directory to %s: %s\n",
|
||||
*argv, strerror(errno));
|
||||
fatalError("cannot change root directory to %s: %s\n", *argv, strerror(errno));
|
||||
}
|
||||
|
||||
argc--;
|
||||
|
@ -62,8 +61,7 @@ int chroot_main(int argc, char **argv)
|
|||
prog = "/bin/sh";
|
||||
execlp(prog, prog, NULL);
|
||||
}
|
||||
fatalError("chroot: cannot execute %s: %s\n",
|
||||
prog, strerror(errno));
|
||||
fatalError("cannot execute %s: %s\n", prog, strerror(errno));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue