diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 2be1a5775..3d04ee50d 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -38,7 +38,8 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
38 | //config: bool "setuidgid (4.2 kb)" | 38 | //config: bool "setuidgid (4.2 kb)" |
39 | //config: default y | 39 | //config: default y |
40 | //config: help | 40 | //config: help |
41 | //config: Sets soft resource limits as specified by options | 41 | //config: Sets UID and GID to those of the given account, and execs |
42 | //config: specified program. | ||
42 | //config: | 43 | //config: |
43 | //config:config ENVUIDGID | 44 | //config:config ENVUIDGID |
44 | //config: bool "envuidgid (4.1 kb)" | 45 | //config: bool "envuidgid (4.1 kb)" |
@@ -466,7 +467,8 @@ int chpst_main(int argc UNUSED_PARAM, char **argv) | |||
466 | /* nice should be done before xsetuid */ | 467 | /* nice should be done before xsetuid */ |
467 | if (opt & OPT_n) { | 468 | if (opt & OPT_n) { |
468 | errno = 0; | 469 | errno = 0; |
469 | if (nice(xatoi(nicestr)) == -1) | 470 | nice(xatoi(nicestr)); |
471 | if (errno) | ||
470 | bb_simple_perror_msg_and_die("nice"); | 472 | bb_simple_perror_msg_and_die("nice"); |
471 | } | 473 | } |
472 | 474 | ||