aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-04-12 12:31:02 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-04-12 12:31:02 +0000
commit0de3c55b4286498753751b7cd63f3af12f0ebd0f (patch)
treecf080409fa9b904793fb19d397e7f0d9fb17a936 /include/platform.h
parent831a20f51246cd8d54a246ba7e239a062eeb002c (diff)
downloadbusybox-0de3c55b4286498753751b7cd63f3af12f0ebd0f.tar.gz
busybox-0de3c55b4286498753751b7cd63f3af12f0ebd0f.tar.bz2
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/platform.h')
-rw-r--r--include/platform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h
index d7389f1aa..4ed5fe624 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__)