diff options
author | Denis Vlasenko | 2007-04-12 12:31:02 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-12 12:31:02 +0000 |
commit | 0de3c55b4286498753751b7cd63f3af12f0ebd0f (patch) | |
tree | cf080409fa9b904793fb19d397e7f0d9fb17a936 /include | |
parent | 831a20f51246cd8d54a246ba7e239a062eeb002c (diff) | |
download | busybox-0de3c55b4286498753751b7cd63f3af12f0ebd0f.zip busybox-0de3c55b4286498753751b7cd63f3af12f0ebd0f.tar.gz |
login: remove setpgrp call (makes it work from shell prompt again).
login: sanitize stdio descriptors (we are suid, need to be careful!)
shrink login and set_environment by ~100 bytes.
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h index d7389f1..4ed5fe6 100644 --- a/include/platform.h +++ b/include/platform.h @@ -259,8 +259,8 @@ static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) { #define HAVE_INTTYPES_H #define PRIu32 "u" -/* use legacy setpgrp(pidt_,pid_t) for now. move to platform.c */ -#define bb_setpgrp do { pid_t __me = getpid(); setpgrp(__me,__me); } while (0) +/* use legacy setpgrp(pid_t,pid_t) for now. move to platform.c */ +#define bb_setpgrp() do { pid_t __me = getpid(); setpgrp(__me,__me); } while (0) #if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET #define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET) @@ -276,7 +276,7 @@ static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) { #endif #else -#define bb_setpgrp setpgrp() +#define bb_setpgrp() setpgrp() #endif #if defined(__linux__) |