summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-08-02 13:32:23 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-08-02 13:32:23 +0000
commitd13ab4fd48f03e64abf378665d5fe7e7cf53c379 (patch)
tree1fc154151661feb7f4b9e6008717910013f4be40 /pw/pw_user.c
parent4573132fd44c8bd71211a975ed21e9acbb58ca45 (diff)
downloadpw-darwin-d13ab4fd48f03e64abf378665d5fe7e7cf53c379.tar.gz
pw-darwin-d13ab4fd48f03e64abf378665d5fe7e7cf53c379.tar.zst
pw-darwin-d13ab4fd48f03e64abf378665d5fe7e7cf53c379.zip
Split some extra long lines
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index b54cccb..33968ee 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -623,7 +623,8 @@ rmat(uid_t uid)
st.st_uid == uid) {
char tmp[MAXPATHLEN];
- snprintf(tmp, sizeof(tmp), "/usr/bin/atrm %s", e->d_name);
+ snprintf(tmp, sizeof(tmp), "/usr/bin/atrm %s",
+ e->d_name);
system(tmp);
}
}
@@ -869,7 +870,8 @@ pw_user_del(int argc, char **argv, char *arg1)
/* Remove crontabs */
snprintf(file, sizeof(file), "/var/cron/tabs/%s", pwd->pw_name);
if (access(file, F_OK) == 0) {
- snprintf(file, sizeof(file), "crontab -u %s -r", pwd->pw_name);
+ snprintf(file, sizeof(file), "crontab -u %s -r",
+ pwd->pw_name);
system(file);
}
}
@@ -1321,7 +1323,8 @@ pw_user_add(int argc, char **argv, char *arg1)
printf("%s\n", cmdcnf->nispasswd);
rc = addnispwent(cmdcnf->nispasswd, pwd);
if (rc == -1)
- warnx("User '%s' already exists in NIS passwd", pwd->pw_name);
+ warnx("User '%s' already exists in NIS passwd",
+ pwd->pw_name);
else if (rc != 0)
warn("NIS passwd update");
/* NOTE: we treat NIS-only update errors as non-fatal */
@@ -1351,7 +1354,8 @@ pw_user_add(int argc, char **argv, char *arg1)
grp = GETGRGID(pwd->pw_gid);
pw_log(cnf, M_ADD, W_USER, "%s(%ju):%s(%ju):%s:%s:%s",
pwd->pw_name, (uintmax_t)pwd->pw_uid,
- grp ? grp->gr_name : "unknown", (uintmax_t)(grp ? grp->gr_gid : (uid_t)-1),
+ grp ? grp->gr_name : "unknown",
+ (uintmax_t)(grp ? grp->gr_gid : (uid_t)-1),
pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell);
/*
@@ -1582,7 +1586,8 @@ pw_user_mod(int argc, char **argv, char *arg1)
if (pwd->pw_uid != 0 && strcmp(pwd->pw_name, "root") == 0)
errx(EX_DATAERR, "can't change uid of `root' account");
if (pwd->pw_uid == 0 && strcmp(pwd->pw_name, "root") != 0)
- warnx("WARNING: account `%s' will have a uid of 0 (superuser access!)", pwd->pw_name);
+ warnx("WARNING: account `%s' will have a uid of 0 "
+ "(superuser access!)", pwd->pw_name);
}
if (grname && pwd->pw_uid != 0) {