diff options
author | ceri <ceri@FreeBSD.org> | 2006-01-15 22:42:38 +0000 |
---|---|---|
committer | ceri <ceri@FreeBSD.org> | 2006-01-15 22:42:38 +0000 |
commit | 676a8bba528b37a14e6b5775bb4357e74dd4ec72 (patch) | |
tree | e40125f19b4fd971cf93625b34abc03bbf8a5169 | |
parent | 7be11cb1d94dafd8a2380011825454cf3578cc00 (diff) | |
download | FreeBSD-src-676a8bba528b37a14e6b5775bb4357e74dd4ec72.zip FreeBSD-src-676a8bba528b37a14e6b5775bb4357e74dd4ec72.tar.gz |
Correct obsolete chown syntax.
PR: bin/90057
Submitted by: Charlie M. McDonald <BoredOutkast at yahoo punkt com>
Approved by: jhb (mentor by proxy)
MFC to: RELENG_5, RELENG_6
MFC After: 3 days
-rw-r--r-- | usr.sbin/sysinstall/anonFTP.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/anonFTP.c b/usr.sbin/sysinstall/anonFTP.c index 3e37b8e..9492f97 100644 --- a/usr.sbin/sysinstall/anonFTP.c +++ b/usr.sbin/sysinstall/anonFTP.c @@ -286,7 +286,7 @@ configAnonFTP(dialogMenuItem *self __unused) 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 @@ configAnonFTP(dialogMenuItem *self __unused) 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."); |