diff options
| author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2004-05-18 15:53:58 +0000 |
|---|---|---|
| committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2004-05-18 15:53:58 +0000 |
| commit | ec18ee18ad865d57f33d5c477150679a02660268 (patch) | |
| tree | 3c3b188e6c2503c4c8a2aad9d419dc8a374e3fba /lib/libutil/pw_util.c | |
| parent | 0a258c19b123cbad7749294c028f6cc8b04dac67 (diff) | |
Notes
Diffstat (limited to 'lib/libutil/pw_util.c')
| -rw-r--r-- | lib/libutil/pw_util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 708583d05877..90c9d72f4f93 100644 --- a/lib/libutil/pw_util.c +++ b/lib/libutil/pw_util.c @@ -266,10 +266,11 @@ pw_mkdb(const char *user) /* child */ if (user == NULL) execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", - "-d", passwd_dir, tempname, NULL); + "-d", passwd_dir, tempname, (char *)NULL); else execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", - "-d", passwd_dir, "-u", user, tempname, NULL); + "-d", passwd_dir, "-u", user, tempname, + (char *)NULL); _exit(1); /* NOTREACHED */ default: @@ -321,7 +322,7 @@ pw_edit(int notsetuid) (void)setuid(getuid()); } errno = 0; - execlp(editor, basename(editor), tempname, NULL); + execlp(editor, basename(editor), tempname, (char *)NULL); _exit(errno); default: /* parent */ |
