projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f02ca1e
)
TOYBOX_DEBUG warns about lack of suid bit when running a STAYROOT command, but it...
author
Rob Landley
<rob@landley.net>
Thu, 27 Dec 2012 23:09:17 +0000
(17:09 -0600)
committer
Rob Landley
<rob@landley.net>
Thu, 27 Dec 2012 23:09:17 +0000
(17:09 -0600)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
0cd1cb2
..
bf89ef2
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-71,7
+71,8
@@
void toy_init(struct toy_list *which, char *argv[])
if (!(which->flags & TOYFLAG_STAYROOT)) {
if (uid != euid) xsetuid(euid=uid);
- } else if (CFG_TOYBOX_DEBUG && uid) error_msg("Not installed suid root");
+ } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list)
+ error_msg("Not installed suid root");
if ((which->flags & TOYFLAG_NEEDROOT) && euid) error_exit("Not root");
}