diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-25 14:52:47 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-25 14:52:47 +0100 |
commit | b2e5fc35ebc127e2a1ac03c7ff0719b1e6b6cd6b (patch) | |
tree | 21c86016df03253513c3bbe80fc7eef71b209d68 /miscutils/crontab.c | |
parent | 18221506e5aeb9c279b73bc9418b60c75b10399a (diff) | |
download | busybox-w32-b2e5fc35ebc127e2a1ac03c7ff0719b1e6b6cd6b.tar.gz busybox-w32-b2e5fc35ebc127e2a1ac03c7ff0719b1e6b6cd6b.tar.bz2 busybox-w32-b2e5fc35ebc127e2a1ac03c7ff0719b1e6b6cd6b.zip |
ntpd: and real handling for -N, show usage w/o options; trim text
function old new delta
ntp_init 317 348 +31
bb_msg_you_must_be_root - 17 +17
xsocket 66 76 +10
changepath 195 194 -1
bb_msg_perm_denied_are_you_root 35 34 -1
send_tree 355 353 -2
count_lines 74 72 -2
must_be_root 17 - -17
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 58/-23) Total: 35 bytes
text data bss dec hexfilename
832873 441 7548 840862 cd49ebusybox_old
832839 441 7548 840828 cd47cbusybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r-- | miscutils/crontab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 67b10f684..044440435 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -118,9 +118,9 @@ int crontab_main(int argc UNUSED_PARAM, char **argv) | |||
118 | argv += optind; | 118 | argv += optind; |
119 | 119 | ||
120 | if (sanitize_env_if_suid()) { /* Clears dangerous stuff, sets PATH */ | 120 | if (sanitize_env_if_suid()) { /* Clears dangerous stuff, sets PATH */ |
121 | /* run by non-root? */ | 121 | /* Run by non-root */ |
122 | if (opt_ler & (OPT_u|OPT_c)) | 122 | if (opt_ler & (OPT_u|OPT_c)) |
123 | bb_error_msg_and_die("only root can use -c or -u"); | 123 | bb_error_msg_and_die(bb_msg_you_must_be_root); |
124 | } | 124 | } |
125 | 125 | ||
126 | if (opt_ler & OPT_u) { | 126 | if (opt_ler & OPT_u) { |