aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-17 16:28:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-17 16:28:10 +0000
commit9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e (patch)
tree94c3c0678d1349497abe2db6004e9331e50f6d37 /loginutils
parenta6127aacef047ed7661722705b052811fbe7f467 (diff)
downloadbusybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.gz
busybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.bz2
busybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.zip
whitespace cleanup
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/addgroup.c2
-rw-r--r--loginutils/adduser.c6
-rw-r--r--loginutils/getty.c6
-rw-r--r--loginutils/sulogin.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index f5a99b796..13f29bfa3 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -88,7 +88,7 @@ int addgroup_main(int argc, char **argv)
88{ 88{
89 char *group; 89 char *group;
90 gid_t gid = 0; 90 gid_t gid = 0;
91 91
92 /* check for min, max and missing args and exit on error */ 92 /* check for min, max and missing args and exit on error */
93 bb_opt_complementally = "-1:?2:?"; 93 bb_opt_complementally = "-1:?2:?";
94 94
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index 0133d8288..936e48e0a 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -137,8 +137,8 @@ static int adduser(struct passwd *p, unsigned long flags)
137 if (mkdir(p->pw_dir, 0755) 137 if (mkdir(p->pw_dir, 0755)
138 || chown(p->pw_dir, p->pw_uid, p->pw_gid) 138 || chown(p->pw_dir, p->pw_uid, p->pw_gid)
139 || chmod(p->pw_dir, 02755)) { 139 || chmod(p->pw_dir, 02755)) {
140 bb_perror_msg("%s", p->pw_dir); 140 bb_perror_msg("%s", p->pw_dir);
141 } 141 }
142 } 142 }
143 143
144 if (!(flags & DONT_SET_PASS)) { 144 if (!(flags & DONT_SET_PASS)) {
@@ -175,7 +175,7 @@ int adduser_main(int argc, char **argv)
175 /* got root? */ 175 /* got root? */
176 if(geteuid()) { 176 if(geteuid()) {
177 bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); 177 bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
178 } 178 }
179 179
180 /* create string for $HOME if not specified already */ 180 /* create string for $HOME if not specified already */
181 if (!pw.pw_dir) { 181 if (!pw.pw_dir) {
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 71f6b2458..b456e076d 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -337,7 +337,7 @@ static void open_tty(char *tty, struct termio *tp, int local)
337 if(fd) { 337 if(fd) {
338 xdup2(fd, 0, tty); 338 xdup2(fd, 0, tty);
339 close(fd); 339 close(fd);
340 } 340 }
341 } else { 341 } else {
342 /* 342 /*
343 * Standard input should already be connected to an open port. Make 343 * Standard input should already be connected to an open port. Make
@@ -812,11 +812,11 @@ int getty_main(int argc, char **argv)
812 setsid(); 812 setsid();
813#endif 813#endif
814 /* We want special flavor of error_msg_and_die */ 814 /* We want special flavor of error_msg_and_die */
815 die_sleep = 10; 815 die_sleep = 10;
816 msg_eol = "\r\n"; 816 msg_eol = "\r\n";
817 /* Was "/dev/console". Why should we spam *system console* 817 /* Was "/dev/console". Why should we spam *system console*
818 * if there is a problem with getty on /dev/ttyS15?... */ 818 * if there is a problem with getty on /dev/ttyS15?... */
819 nullfd = xopen(bb_dev_null, O_RDWR); 819 nullfd = xopen(bb_dev_null, O_RDWR);
820 dup2(nullfd, 0); 820 dup2(nullfd, 0);
821 dup2(nullfd, 1); 821 dup2(nullfd, 1);
822 dup2(nullfd, 2); 822 dup2(nullfd, 2);
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index a2238d49d..8cfb64e9a 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -73,7 +73,7 @@ int sulogin_main(int argc, char **argv)
73 73
74 if (!(pwd = getpwuid(0))) { 74 if (!(pwd = getpwuid(0))) {
75 goto auth_error; 75 goto auth_error;
76 } 76 }
77 77
78 if (ENABLE_FEATURE_SHADOWPASSWDS) { 78 if (ENABLE_FEATURE_SHADOWPASSWDS) {
79 if (!(spwd = getspnam(pwd->pw_name))) { 79 if (!(spwd = getspnam(pwd->pw_name))) {
@@ -108,6 +108,6 @@ int sulogin_main(int argc, char **argv)
108 run_shell(pwd->pw_shell, 1, 0, 0); 108 run_shell(pwd->pw_shell, 1, 0, 0);
109 /* never returns */ 109 /* never returns */
110 110
111auth_error: 111auth_error:
112 bb_error_msg_and_die("no password entry for `root'"); 112 bb_error_msg_and_die("no password entry for `root'");
113} 113}