aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-21 21:43:53 +0000
committerColin Smith <colin@pfsense.org>2005-04-21 21:43:53 +0000
commit52b1b09708337bda56a2d15a6854b0580fd7780a (patch)
tree01f5e4e57491fb9183f4fab88499ce7fe549d4ec
parent673e063c7b7ece71f24490cf21974937e26c9c9a (diff)
downloadpfsense-packages-52b1b09708337bda56a2d15a6854b0580fd7780a.tar.gz
pfsense-packages-52b1b09708337bda56a2d15a6854b0580fd7780a.tar.bz2
pfsense-packages-52b1b09708337bda56a2d15a6854b0580fd7780a.zip
(#13) Fix useradd line as suggested in ticket comments. This needs testing (I don't use pure-ftpd).
-rw-r--r--packages/pure-ftpd.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pure-ftpd.xml b/packages/pure-ftpd.xml
index 2c684f3d..e72a2c7a 100644
--- a/packages/pure-ftpd.xml
+++ b/packages/pure-ftpd.xml
@@ -84,7 +84,7 @@
config_lock();
$expires = "";
if($_POST['expiration']) $expires = " -e " . $_POST['expiration'];
- mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -d /home/" . $_POST['username'] . "/./ -s \"/usr/sbin/nologin\"");
+ mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -d /home/" . $_POST['username'] . " -s /usr/sbin/nologin");
$fd = popen("/usr/sbin/pw usermod -n " . $_POST['username'] . " -H 0", "w");
$salt = md5(time());
$crypted_pw = crypt($_POST['password'],$salt);