| Summary: | ``pw usermod -n user -d /new/homedir'' does nothing | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Martin Butkus <mb> |
| Component: | bin | Assignee: | davidn |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.0-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Martin Butkus
2000-07-02 20:30:01 UTC
Responsible Changed From-To: freebsd-bugs->davidn David's interested in these. State Changed From-To: open->closed Fixed in rev. 1.39 of pw_user.c in -current, and MFC to 4.0-stable shortly. Thanks for the bug report! The attached patch solves this problem for me; IMHO, there's
no reason not to commit it to RELENG_4 before 4.1-RELEASE.
G'luck,
Peter Pentchev
----------------------------------------------
This would easier understand fewer had omitted.
diff -u src/usr.sbin/pw/pw_user.c mysrc/usr.sbin/pw/pw_user.c
--- src/usr.sbin/pw/pw_user.c Mon Jul 3 11:47:50 2000
+++ mysrc/usr.sbin/pw/pw_user.c Mon Jul 3 11:46:56 2000
@@ -537,6 +537,7 @@
warnx("WARNING: home `%s' does not exist", pwd->pw_dir);
} else if (!S_ISDIR(st.st_mode))
warnx("WARNING: home `%s' is not a directory", pwd->pw_dir);
+ edited = 1;
}
if ((arg = getarg(args, 'w')) != NULL && getarg(args, 'h') == NULL) {
Hmm sorry for the last post; never noticed the person responsible had actually fixed this in -current :( Still, this does look like a pretty strong MFC candidate to me. G'luck, Peter ---------------------------------------------- This sentence was in the past tense. |