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-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.gz
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)
{
char *group;
gid_t gid = 0;
-
+
/* check for min, max and missing args and exit on error */
bb_opt_complementally = "-1:?2:?";
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)
if (mkdir(p->pw_dir, 0755)
|| chown(p->pw_dir, p->pw_uid, p->pw_gid)
|| chmod(p->pw_dir, 02755)) {
- bb_perror_msg("%s", p->pw_dir);
- }
+ bb_perror_msg("%s", p->pw_dir);
+ }
}
if (!(flags & DONT_SET_PASS)) {
@@ -175,7 +175,7 @@ int adduser_main(int argc, char **argv)
/* got root? */
if(geteuid()) {
bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
- }
+ }
/* create string for $HOME if not specified already */
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)
if(fd) {
xdup2(fd, 0, tty);
close(fd);
- }
+ }
} else {
/*
* Standard input should already be connected to an open port. Make
@@ -812,11 +812,11 @@ int getty_main(int argc, char **argv)
setsid();
#endif
/* We want special flavor of error_msg_and_die */
- die_sleep = 10;
+ die_sleep = 10;
msg_eol = "\r\n";
/* Was "/dev/console". Why should we spam *system console*
* if there is a problem with getty on /dev/ttyS15?... */
- nullfd = xopen(bb_dev_null, O_RDWR);
+ nullfd = xopen(bb_dev_null, O_RDWR);
dup2(nullfd, 0);
dup2(nullfd, 1);
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)
if (!(pwd = getpwuid(0))) {
goto auth_error;
- }
+ }
if (ENABLE_FEATURE_SHADOWPASSWDS) {
if (!(spwd = getspnam(pwd->pw_name))) {
@@ -108,6 +108,6 @@ int sulogin_main(int argc, char **argv)
run_shell(pwd->pw_shell, 1, 0, 0);
/* never returns */
-auth_error:
+auth_error:
bb_error_msg_and_die("no password entry for `root'");
}