diff options
| author | David Nugent <davidn@FreeBSD.org> | 2000-07-14 22:10:32 +0000 |
|---|---|---|
| committer | David Nugent <davidn@FreeBSD.org> | 2000-07-14 22:10:32 +0000 |
| commit | 887eb398a862c4bee044416f98cbb7e0d92068bf (patch) | |
| tree | 57dc2ade5d3d2505fc2eb3404465559d04b14be8 | |
| parent | cbbcd6a92ca3c3fe257721d0b64828738cbf717e (diff) | |
Notes
| -rw-r--r-- | usr.sbin/pw/pw_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index bd574c6a4801..e8a3b07371d9 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -532,6 +532,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args) } if ((arg = getarg(args, 'd')) != NULL) { + edited = strcmp(pwd->pw_dir, arg->val) != 0; if (stat(pwd->pw_dir = arg->val, &st) == -1) { if (getarg(args, 'm') == NULL && strcmp(pwd->pw_dir, "/nonexistent") != 0) warnx("WARNING: home `%s' does not exist", pwd->pw_dir); |
