summaryrefslogtreecommitdiff
path: root/loginutils/sulogin.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-10-15 10:23:55 +0000
committer"Vladimir N. Oleynik"2005-10-15 10:23:55 +0000
commit6f347ef9dc540aaea025c0575e586817cd85cc8e (patch)
tree5fc98f67e92bb2eca75d33940a4f8698bb216f3a /loginutils/sulogin.c
parent84e7511607600c2c7b9e7c4087897d44cc4668c4 (diff)
downloadbusybox-6f347ef9dc540aaea025c0575e586817cd85cc8e.zip
busybox-6f347ef9dc540aaea025c0575e586817cd85cc8e.tar.gz
common BUFSIZ BSS buffer, small reduce code, data and bss
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r--loginutils/sulogin.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index a458b6e..4e689ad 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -21,7 +21,7 @@
#define SULOGIN_PROMPT "\nGive root password for system maintenance\n" \
"(or type Control-D for normal startup):"
-static const char *forbid[] = {
+static const char * const forbid[] = {
"ENV",
"BASH_ENV",
"HOME",
@@ -53,11 +53,13 @@ extern int sulogin_main(int argc, char **argv)
char *device = (char *) 0;
const char *name = "root";
int timeout = 0;
- static char pass[BUFSIZ];
+
+#define pass bb_common_bufsiz1
+
struct passwd pwent;
struct passwd *pwd;
time_t start, now;
- const char **p;
+ const char * const *p;
#ifdef CONFIG_FEATURE_SHADOWPASSWDS
struct spwd *spwd = NULL;
#endif /* CONFIG_FEATURE_SHADOWPASSWDS */