From owner-freebsd-bugs Mon Jul 3 1:54:24 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from orbitel.bg (ns.orbitel.bg [195.24.32.2]) by hub.freebsd.org (Postfix) with SMTP id DE44637BF7B for ; Mon, 3 Jul 2000 01:54:18 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 11860 invoked from network); 3 Jul 2000 08:54:15 -0000 Received: from penchev.staff.orbitel.bg (HELO ringwraith.oblivion.bg) (192.168.0.98) by ns.orbitel.bg with SMTP; 3 Jul 2000 08:54:15 -0000 Received: (qmail 48870 invoked by uid 1001); 3 Jul 2000 08:54:10 -0000 Date: Mon, 3 Jul 2000 11:54:10 +0300 From: Peter Pentchev 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> References: <200007021929.VAA01192@bagheera.thgwf.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200007021929.VAA01192@bagheera.thgwf.de>; from mb@bagheera.thgwf.de on Sun, Jul 02, 2000 at 09:29:19PM +0200 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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