diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-11-11 10:59:23 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-11-11 10:59:23 +0000 |
commit | 89a437bf6a7ba5700cfc16a23f8390b2e27ed86c (patch) | |
tree | b554dfb559ec025c4b3087a23a6a423cba5d8f9b /release/sysinstall/anonFTP.c | |
parent | d8f51a57284034fb68015a2e0d3a7afab5b3cbd4 (diff) |
Various cosmetic tweaks.
Notes
Notes:
svn path=/head/; revision=12210
Diffstat (limited to 'release/sysinstall/anonFTP.c')
-rw-r--r-- | release/sysinstall/anonFTP.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/sysinstall/anonFTP.c b/release/sysinstall/anonFTP.c index f38cd25cef5e..aa76639ce3e4 100644 --- a/release/sysinstall/anonFTP.c +++ b/release/sysinstall/anonFTP.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: anonFTP.c,v 1.1 1995/11/09 02:31:53 jkh Exp $ + * $Id: anonFTP.c,v 1.2 1995/11/10 04:43:47 jkh Exp $ * * Copyright (c) 1995 * Coranth Gryphon. All rights reserved. @@ -457,7 +457,7 @@ configAnonFTP(char *unused) if (directoryExists(tconf.homedir)) { - vsystem("chmod 555 %s; chown root.%s %s", tconf.homedir, tconf.group, + vsystem("chmod 555 %s && chown root.%s %s", tconf.homedir, tconf.group, tconf.homedir); vsystem("mkdir %s/bin && chmod 555 %s/bin", tconf.homedir, tconf.homedir); vsystem("cp /bin/ls %s/bin && chmod 111 %s/bin/ls", tconf.homedir, @@ -466,7 +466,6 @@ configAnonFTP(char *unused) tconf.homedir); vsystem("mkdir %s/etc && chmod 555 %s/etc", tconf.homedir, tconf.homedir); vsystem("mkdir -p %s/pub", tconf.homedir); - vsystem("chown -R %s.%s %s/pub", FTP_NAME, tconf.group, tconf.homedir); vsystem("mkdir -p %s/%s", tconf.homedir, tconf.upload); vsystem("chmod 1777 %s/%s", tconf.homedir, tconf.upload); @@ -475,6 +474,7 @@ configAnonFTP(char *unused) vsystem("cp /etc/pwd.db %s/etc && chmod 444 %s/etc/pwd.db",tconf.homedir); vsystem("cp /etc/passwd %s/etc && chmod 444 %s/etc/passwd",tconf.homedir); vsystem("cp /etc/group %s/etc && chmod 444 %s/etc/group", tconf.homedir); + vsystem("chown -R %s.%s %s/pub", FTP_NAME, tconf.group, tconf.homedir); } else { @@ -483,9 +483,9 @@ configAnonFTP(char *unused) i = RET_FAIL; } - if (! msgYesNo("Create a welcome message file for anonymous FTP users?")) + if (!msgYesNo("Create a welcome message file for anonymous FTP users?")) { - vsystem("echo 'Your welcome message here.' > %s/etc/%s", tconf.homedir, MOTD_FILE); + vsystem("echo Your welcome message here. > %s/etc/%s", tconf.homedir, MOTD_FILE); vsystem("ee %s/etc/%s", tconf.homedir, MOTD_FILE); } } |