correct "pivot_root: pivot_root: <msg>"
This commit is contained in:
parent
8c0164c373
commit
f885c543da
@ -18,8 +18,10 @@ int pivot_root_main(int argc, char **argv)
|
|||||||
if (argc != 3)
|
if (argc != 3)
|
||||||
bb_show_usage();
|
bb_show_usage();
|
||||||
|
|
||||||
if (pivot_root(argv[1],argv[2]) < 0)
|
if (pivot_root(argv[1], argv[2]) < 0) {
|
||||||
bb_perror_msg_and_die("pivot_root");
|
/* prints "pivot_root: <strerror text>" */
|
||||||
|
bb_perror_nomsg_and_die();
|
||||||
|
}
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user