From owner-freebsd-i386@FreeBSD.ORG Wed Dec 7 08:30:08 2005 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DA4616A41F for ; Wed, 7 Dec 2005 08:30:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E636743D46 for ; Wed, 7 Dec 2005 08:30:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB78U7GU052424 for ; Wed, 7 Dec 2005 08:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB78U7tg052423; Wed, 7 Dec 2005 08:30:07 GMT (envelope-from gnats) Date: Wed, 7 Dec 2005 08:30:07 GMT Message-Id: <200512070830.jB78U7tg052423@freefall.freebsd.org> To: freebsd-i386@FreeBSD.org From: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= Cc: Subject: Re: i386/90057: During installation, the 'chown' command... X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 08:30:08 -0000 The following reply was made to PR i386/90057; it has been noted by GNATS. From: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= To: bug-followup@FreeBSD.org, BoredOutkast@yahoo.com Cc: Subject: Re: i386/90057: During installation, the 'chown' command... Date: Wed, 07 Dec 2005 09:21:12 +0100 This is a multi-part message in MIME format. --------------000905010708060207070701 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit The attached patch fixes this problem for all upcoming releases. --------------000905010708060207070701 Content-Type: text/plain; name="PR90057-2005120701.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="PR90057-2005120701.diff" --- src/usr.sbin/sysinstall/anonFTP.c.orig Wed Dec 7 09:08:02 2005 +++ src/usr.sbin/sysinstall/anonFTP.c Wed Dec 7 09:08:19 2005 @@ -286,7 +286,7 @@ if (directory_exists(tconf.homedir)) { msgNotify("Configuring %s for use by anon FTP.", tconf.homedir); - vsystem("chmod 555 %s && chown root.%s %s", tconf.homedir, tconf.group, tconf.homedir); + vsystem("chmod 555 %s && chown root:%s %s", tconf.homedir, tconf.group, tconf.homedir); vsystem("mkdir %s/etc && chmod 555 %s/etc", tconf.homedir, tconf.homedir); vsystem("mkdir -p %s/pub", tconf.homedir); if (tconf.upload[0]) { @@ -300,7 +300,7 @@ vsystem("/usr/sbin/pwd_mkdb -d %s/etc %s/etc/master.passwd && chmod 444 %s/etc/pwd.db", tconf.homedir, tconf.homedir, tconf.homedir); vsystem("rm -f %s/etc/master.passwd %s/etc/spwd.db", tconf.homedir, tconf.homedir); vsystem("awk -F: '{if ((substr($1, 1, 1) != \"+\") && (substr($1, 1, 1) != \"-\") && ($3 < 100)) print $0}' /etc/group > %s/etc/group && chmod 444 %s/etc/group", tconf.homedir, tconf.homedir); - vsystem("chown -R root.%s %s/pub", tconf.group, tconf.homedir); + vsystem("chown -R root:%s %s/pub", tconf.group, tconf.homedir); } else { msgConfirm("Unable to create FTP user! Anonymous FTP setup failed."); --------------000905010708060207070701--