| Summary: | 3.4 stable src/release/sysinstall/anonFTP.c problem | ||
|---|---|---|---|
| Product: | Base System | Reporter: | lioux <lioux> |
| Component: | misc | Assignee: | jkh |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.4-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->jkh Over to maintainer. State Changed From-To: open->closed already found and fixed earlier today, thanks. |
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. Fix: 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); }--z54x01qbsaqbs3zLNaaGgS6Y4Grf2BuDXvF1cOj6wUrk3gPh Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- anonFTP.c.ORIG Tue Jan 25 14:21:45 2000 +++ anonFTP.c Tue Jan 25 14:22:00 2000 @@ -284,7 +284,7 @@ How-To-Repeat: Just compile the mentioned stable version