- very minor shrinkage (-9b)
This commit is contained in:
parent
54d50a0b47
commit
02a1c6a7c3
@ -1368,11 +1368,11 @@ int inetd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* prepare env and exec program */
|
/* prepare env and exec program */
|
||||||
pwd = getpwnam(sep->se_user);
|
pwd = getpwnam(sep->se_user);
|
||||||
if (pwd == NULL) {
|
if (pwd == NULL) {
|
||||||
bb_error_msg("%s: no such user", sep->se_user);
|
bb_error_msg("%s: no such %s", sep->se_user, "user");
|
||||||
goto do_exit1;
|
goto do_exit1;
|
||||||
}
|
}
|
||||||
if (sep->se_group && (grp = getgrnam(sep->se_group)) == NULL) {
|
if (sep->se_group && (grp = getgrnam(sep->se_group)) == NULL) {
|
||||||
bb_error_msg("%s: no such group", sep->se_group);
|
bb_error_msg("%s: no such %s", sep->se_group, "group");
|
||||||
goto do_exit1;
|
goto do_exit1;
|
||||||
}
|
}
|
||||||
if (real_uid != 0 && real_uid != pwd->pw_uid) {
|
if (real_uid != 0 && real_uid != pwd->pw_uid) {
|
||||||
@ -1439,7 +1439,7 @@ static void echo_stream(int s, servtab_t *sep UNUSED_PARAM)
|
|||||||
xdup2(STDIN_FILENO, STDOUT_FILENO);
|
xdup2(STDIN_FILENO, STDOUT_FILENO);
|
||||||
/* no error messages please... */
|
/* no error messages please... */
|
||||||
close(STDERR_FILENO);
|
close(STDERR_FILENO);
|
||||||
xopen("/dev/null", O_WRONLY);
|
xopen(bb_dev_null, O_WRONLY);
|
||||||
BB_EXECVP("cat", (char**)cat_args);
|
BB_EXECVP("cat", (char**)cat_args);
|
||||||
/* on failure we return to main, which does exit(EXIT_FAILURE) */
|
/* on failure we return to main, which does exit(EXIT_FAILURE) */
|
||||||
#endif
|
#endif
|
||||||
@ -1475,7 +1475,7 @@ static void discard_stream(int s, servtab_t *sep UNUSED_PARAM)
|
|||||||
xmove_fd(s, STDIN_FILENO);
|
xmove_fd(s, STDIN_FILENO);
|
||||||
/* discard output */
|
/* discard output */
|
||||||
close(STDOUT_FILENO);
|
close(STDOUT_FILENO);
|
||||||
xopen("/dev/null", O_WRONLY);
|
xopen(bb_dev_null, O_WRONLY);
|
||||||
/* no error messages please... */
|
/* no error messages please... */
|
||||||
xdup2(STDOUT_FILENO, STDERR_FILENO);
|
xdup2(STDOUT_FILENO, STDERR_FILENO);
|
||||||
BB_EXECVP("cat", (char**)cat_args);
|
BB_EXECVP("cat", (char**)cat_args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user