Date: Mon, 3 Jul 2000 11:54:10 +0300 From: Peter Pentchev <roam@orbitel.bg> To: m.butkus@tu-bs.de Cc: freebsd-bugs@freebsd.org Subject: Re: bin/19649: ``pw usermod -n user -d /new/homedir'' does nothing Message-ID: <20000703115410.B1445@ringwraith.oblivion.bg> In-Reply-To: <200007021929.VAA01192@bagheera.thgwf.de>; from mb@bagheera.thgwf.de on Sun, Jul 02, 2000 at 09:29:19PM %2B0200 References: <200007021929.VAA01192@bagheera.thgwf.de>
next in thread | previous in thread | raw e-mail | index | archive | help
A little patch attached to the end of the message.
G'luck,
Pencheff
----------------------------------------------
What would this sentence be like if it weren't self-referential?
On Sun, Jul 02, 2000 at 09:29:19PM +0200, Martin Butkus wrote:
>
> >Number: 19649
> >Category: bin
> >Synopsis: ``pw usermod -n user -d /new/homedir'' does nothing
[snip]
> >Description:
>
> When you try changing the home directory of an account
> with "pw usermod -d ...", the home directory is *not*
> changed. This used to work in earlier 4-STABLEs.
[snip]
> >Fix:
>
> None known, sorry.
diff -u src/usr.sbin/pw/pw_user.c src/usr.sbin/pw/pw_user.c-roam
--- src/usr.sbin/pw/pw_user.c Mon Jul 3 11:47:50 2000
+++ src/usr.sbin/pw/pw_user.c-roam 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) {
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000703115410.B1445>
