summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/anonFTP.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-28 01:07:27 +0000
committerjkh <jkh@FreeBSD.org>1996-04-28 01:07:27 +0000
commit757f0d4140ba92ac2ff7e00fc840bf99ecee5f21 (patch)
treee29bd26ab9f65572bd124e188a21b4a1744bcb54 /release/sysinstall/anonFTP.c
parent7a8e35fbab581e26b8a60eeea29077d5d66b9e11 (diff)
downloadFreeBSD-src-757f0d4140ba92ac2ff7e00fc840bf99ecee5f21.zip
FreeBSD-src-757f0d4140ba92ac2ff7e00fc840bf99ecee5f21.tar.gz
Move some of functions around in order to make this stuff easier
to work on.
Diffstat (limited to 'release/sysinstall/anonFTP.c')
-rw-r--r--release/sysinstall/anonFTP.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/release/sysinstall/anonFTP.c b/release/sysinstall/anonFTP.c
index f4f152c..436d27f 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.11 1996/04/13 13:31:19 jkh Exp $
+ * $Id: anonFTP.c,v 1.12 1996/04/23 01:29:07 jkh Exp $
*
* Copyright (c) 1995
* Coranth Gryphon. All rights reserved.
@@ -429,9 +429,8 @@ configAnonFTP(dialogMenuItem *self)
/*** If HomeDir does not exist, create it ***/
- if (!directory_exists(tconf.homedir)) {
+ if (!directory_exists(tconf.homedir))
vsystem("mkdir -p %s", tconf.homedir);
- }
if (directory_exists(tconf.homedir)) {
msgNotify("Configuring %s for use by anon FTP.", tconf.homedir);
@@ -447,7 +446,7 @@ configAnonFTP(dialogMenuItem *self)
if (createFtpUser() == DITEM_SUCCESS) {
msgNotify("Copying password information for anon FTP.");
vsystem("cp /etc/pwd.db %s/etc && chmod 444 %s/etc/pwd.db", tconf.homedir, tconf.homedir);
- vsystem("cp /etc/passwd %s/etc && chmod 444 %s/etc/passwd",tconf.homedir, tconf.homedir);
+ vsystem("cp /etc/passwd %s/etc && chmod 444 %s/etc/passwd", tconf.homedir, tconf.homedir);
vsystem("cp /etc/group %s/etc && chmod 444 %s/etc/group", tconf.homedir, tconf.homedir);
vsystem("chown -R %s.%s %s/pub", FTP_NAME, tconf.group, tconf.homedir);
}
OpenPOWER on IntegriCloud