From nobody@FreeBSD.ORG  Tue Jan 25 08:34:17 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 3B5D214F4B; Tue, 25 Jan 2000 08:33:54 -0800 (PST)
Message-Id: <20000125163354.3B5D214F4B@hub.freebsd.org>
Date: Tue, 25 Jan 2000 08:33:54 -0800 (PST)
From: lioux@linf.unb.br
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: 3.4 stable src/release/sysinstall/anonFTP.c problem
X-Send-Pr-Version: www-1.0

>Number:         16352
>Category:       misc
>Synopsis:       3.4 stable src/release/sysinstall/anonFTP.c problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jkh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 25 08:40:01 PST 2000
>Closed-Date:    Tue Jan 25 12:55:25 PST 2000
>Last-Modified:  Tue Jan 25 12:55:47 PST 2000
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        3.4-STABLE cvsuped about Tue Jan 25 14:24:07 EDT 2000 from cvsup.br.freebsd.org
>Organization:
>Environment:
FreeBSD Here.here 3.4-STABLE FreeBSD 3.4-STABLE #1: Tue Jan 25 12:47:11 EDT
2000     Here@Here.here:/usr/src/sys/compile/GENERIC  i386
>Description:
The src/release/sysinstall/anonFTP.c is not compiling due to a simple typo on line 287. The quotations (") inside the awk statement should have been escaped.
>How-To-Repeat:
Just compile the mentioned stable version
>Fix:
--- anonFTP.c.ORIG      Tue Jan 25 14:21:45 2000
+++ anonFTP.c   Tue Jan 25 14:22:00 2000
@@ -284,7 +284,7 @@

        if (DITEM_STATUS(createFtpUser()) == DITEM_SUCCESS) {
            msgNotify("Copying password information for anon FTP.");
-           vsystem("awk -F: '{if ($3 < 10 || $1 == "ftp") print $0}' /etc/passw
d > %s/etc/passwd && chmod 444 %s/etc/passwd", tconf.homedir, tconf.homedir);
+           vsystem("awk -F: '{if ($3 < 10 || $1 == \"ftp\") print $0}' /etc/pas
swd > %s/etc/passwd && chmod 444 %s/etc/passwd", tconf.homedir, tconf.homedir);
            vsystem("awk -F: '{if ($3 < 100) print $0}' /etc/group > %s/etc/grou
p && chmod 444 %s/etc/group", tconf.homedir, tconf.homedir);
            vsystem("chown -R root.%s %s/pub", tconf.group, tconf.homedir);
        }

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Jan 25 09:36:24 PST 2000 
Responsible-Changed-Why:  
Over to maintainer. 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Tue Jan 25 12:55:25 PST 2000 
State-Changed-Why:  
already found and fixed earlier today, thanks. 
>Unformatted:
