Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main.c: fix non-root usage when installed suid root
When toybox is installed suid root and invoked by a non-root user for commands which do not require root privileges, it drops the root privileges during initialization. However, since commit afba5b8 the result check of setuid() was inverted such that it aborted on success, making toybox unusuable for non-root users. Signed-off-by: Patrick Ohly <[email protected]>
- Loading branch information