projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c0164c
)
correct "pivot_root: pivot_root: <msg>"
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 6 Feb 2007 00:35:36 +0000
(
00:35
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 6 Feb 2007 00:35:36 +0000
(
00:35
-0000)
util-linux/pivot_root.c
patch
|
blob
|
history
diff --git
a/util-linux/pivot_root.c
b/util-linux/pivot_root.c
index 97c7fa85e451c09aa6414abad8f3f1ea3e1c5e6a..2706bd2ff1eaa42b6420c6b67a51b845b046979f 100644
(file)
--- a/
util-linux/pivot_root.c
+++ b/
util-linux/pivot_root.c
@@
-18,8
+18,10
@@
int pivot_root_main(int argc, char **argv)
if (argc != 3)
bb_show_usage();
- if (pivot_root(argv[1],argv[2]) < 0)
- bb_perror_msg_and_die("pivot_root");
+ if (pivot_root(argv[1], argv[2]) < 0) {
+ /* prints "pivot_root: <strerror text>" */
+ bb_perror_nomsg_and_die();
+ }
return EXIT_SUCCESS;
}