diff options
author | sobrado <sobrado@openbsd.org> | 2011-04-16 07:41:08 +0000 |
---|---|---|
committer | sobrado <sobrado@openbsd.org> | 2011-04-16 07:41:08 +0000 |
commit | c9e2cee3371768eb7f1aa67e03ef084d18ae381d (patch) | |
tree | 1f53cf367e01f9a7573d027dbe4cd265c6b73244 /usr.sbin/user/user.c | |
parent | rephrase argument to -g for consistency not only with useradd(8) (diff) | |
download | wireguard-openbsd-c9e2cee3371768eb7f1aa67e03ef084d18ae381d.tar.xz wireguard-openbsd-c9e2cee3371768eb7f1aa67e03ef084d18ae381d.zip |
remove trailing whitespace, no binary change.
Diffstat (limited to 'usr.sbin/user/user.c')
-rw-r--r-- | usr.sbin/user/user.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index 3327f75ef4a..b75d7b0469e 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.80 2011/04/08 18:13:53 jmc Exp $ */ +/* $OpenBSD: user.c,v 1.81 2011/04/16 07:41:08 sobrado Exp $ */ /* $NetBSD: user.c,v 1.69 2003/04/14 17:40:07 agc Exp $ */ /* @@ -304,7 +304,7 @@ copydotfiles(char *skeldir, uid_t uid, gid_t gid, char *dir) if (n == 0) { warnx("No \"dot\" initialisation files found"); } else { - (void) asystem("cd %s && %s -rw -pe %s . %s", + (void) asystem("cd %s && %s -rw -pe %s . %s", skeldir, PAX, (verbose) ? "-v" : "", dir); } (void) asystem("%s -R -P %u:%u %s", CHOWN, uid, gid, dir); @@ -1025,7 +1025,7 @@ adduser(char *login_name, user_t *up) * Look for a free UID in the command line ranges (if any). * These start after the ranges specified in the config file. */ - for (i = up->u_defrc; got_id == 0 && i < up->u_rc ; i++) { + for (i = up->u_defrc; got_id == 0 && i < up->u_rc ; i++) { got_id = getnextuid(sync_uid_gid, &up->u_uid, up->u_rv[i].r_from, up->u_rv[i].r_to); } @@ -1035,7 +1035,7 @@ adduser(char *login_name, user_t *up) * be at least one default). */ if (got_id == 0) { - for (i = 0; got_id == 0 && i < up->u_defrc; i++) { + for (i = 0; got_id == 0 && i < up->u_defrc; i++) { got_id = getnextuid(sync_uid_gid, &up->u_uid, up->u_rv[i].r_from, up->u_rv[i].r_to); } @@ -1557,10 +1557,10 @@ moduser(char *login_name, char *newlogin, user_t *up) if (up == NULL) { syslog(LOG_INFO, "user removed: name=%s", login_name); } else if (strcmp(login_name, newlogin) == 0) { - syslog(LOG_INFO, "user information modified: name=%s, uid=%d, gid=%d, home=%s, shell=%s", + syslog(LOG_INFO, "user information modified: name=%s, uid=%d, gid=%d, home=%s, shell=%s", login_name, pwp->pw_uid, pwp->pw_gid, pwp->pw_dir, pwp->pw_shell); } else { - syslog(LOG_INFO, "user information modified: name=%s, new name=%s, uid=%d, gid=%d, home=%s, shell=%s", + syslog(LOG_INFO, "user information modified: name=%s, new name=%s, uid=%d, gid=%d, home=%s, shell=%s", login_name, newlogin, pwp->pw_uid, pwp->pw_gid, pwp->pw_dir, pwp->pw_shell); } return 1; |