diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-17 15:13:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-17 15:13:31 +0000 |
commit | 02a1c6a7c337334a171787a4dd84083029fd490f (patch) | |
tree | c132735165b0a728142e2e7602b128aeabde9e87 | |
parent | 54d50a0b476ec2e6015dffd9598edc2d7968047b (diff) | |
download | busybox-w32-02a1c6a7c337334a171787a4dd84083029fd490f.tar.gz busybox-w32-02a1c6a7c337334a171787a4dd84083029fd490f.tar.bz2 busybox-w32-02a1c6a7c337334a171787a4dd84083029fd490f.zip |
- very minor shrinkage (-9b)
-rw-r--r-- | networking/inetd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index 5f352710b..19434aca4 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -1368,11 +1368,11 @@ int inetd_main(int argc UNUSED_PARAM, char **argv) | |||
1368 | /* prepare env and exec program */ | 1368 | /* prepare env and exec program */ |
1369 | pwd = getpwnam(sep->se_user); | 1369 | pwd = getpwnam(sep->se_user); |
1370 | if (pwd == NULL) { | 1370 | if (pwd == NULL) { |
1371 | bb_error_msg("%s: no such user", sep->se_user); | 1371 | bb_error_msg("%s: no such %s", sep->se_user, "user"); |
1372 | goto do_exit1; | 1372 | goto do_exit1; |
1373 | } | 1373 | } |
1374 | if (sep->se_group && (grp = getgrnam(sep->se_group)) == NULL) { | 1374 | if (sep->se_group && (grp = getgrnam(sep->se_group)) == NULL) { |
1375 | bb_error_msg("%s: no such group", sep->se_group); | 1375 | bb_error_msg("%s: no such %s", sep->se_group, "group"); |
1376 | goto do_exit1; | 1376 | goto do_exit1; |
1377 | } | 1377 | } |
1378 | if (real_uid != 0 && real_uid != pwd->pw_uid) { | 1378 | if (real_uid != 0 && real_uid != pwd->pw_uid) { |
@@ -1439,7 +1439,7 @@ static void echo_stream(int s, servtab_t *sep UNUSED_PARAM) | |||
1439 | xdup2(STDIN_FILENO, STDOUT_FILENO); | 1439 | xdup2(STDIN_FILENO, STDOUT_FILENO); |
1440 | /* no error messages please... */ | 1440 | /* no error messages please... */ |
1441 | close(STDERR_FILENO); | 1441 | close(STDERR_FILENO); |
1442 | xopen("/dev/null", O_WRONLY); | 1442 | xopen(bb_dev_null, O_WRONLY); |
1443 | BB_EXECVP("cat", (char**)cat_args); | 1443 | BB_EXECVP("cat", (char**)cat_args); |
1444 | /* on failure we return to main, which does exit(EXIT_FAILURE) */ | 1444 | /* on failure we return to main, which does exit(EXIT_FAILURE) */ |
1445 | #endif | 1445 | #endif |
@@ -1475,7 +1475,7 @@ static void discard_stream(int s, servtab_t *sep UNUSED_PARAM) | |||
1475 | xmove_fd(s, STDIN_FILENO); | 1475 | xmove_fd(s, STDIN_FILENO); |
1476 | /* discard output */ | 1476 | /* discard output */ |
1477 | close(STDOUT_FILENO); | 1477 | close(STDOUT_FILENO); |
1478 | xopen("/dev/null", O_WRONLY); | 1478 | xopen(bb_dev_null, O_WRONLY); |
1479 | /* no error messages please... */ | 1479 | /* no error messages please... */ |
1480 | xdup2(STDOUT_FILENO, STDERR_FILENO); | 1480 | xdup2(STDOUT_FILENO, STDERR_FILENO); |
1481 | BB_EXECVP("cat", (char**)cat_args); | 1481 | BB_EXECVP("cat", (char**)cat_args); |