diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-18 15:25:15 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-18 15:25:15 +0000 |
commit | 625a773a843defb39ce44cfab2ac26fe153c95f3 (patch) | |
tree | c3ddf3fd0c085edebe4aa3fc6939f52f0e7a3aca /ftp_wizard | |
parent | c713029d4c001ff5f0657f8fabaa865d3aec6b4f (diff) | |
download | drakwizard-625a773a843defb39ce44cfab2ac26fe153c95f3.tar drakwizard-625a773a843defb39ce44cfab2ac26fe153c95f3.tar.gz drakwizard-625a773a843defb39ce44cfab2ac26fe153c95f3.tar.bz2 drakwizard-625a773a843defb39ce44cfab2ac26fe153c95f3.tar.xz drakwizard-625a773a843defb39ce44cfab2ac26fe153c95f3.zip |
fix being able to set a port other than 21
it was broken since commit r236976 by aginies on Jun 21 2006:
"fix ftp default port to 21"
Diffstat (limited to 'ftp_wizard')
-rwxr-xr-x | ftp_wizard/Proftpd.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftp_wizard/Proftpd.pm b/ftp_wizard/Proftpd.pm index 90354a45..d322aace 100755 --- a/ftp_wizard/Proftpd.pm +++ b/ftp_wizard/Proftpd.pm @@ -124,7 +124,7 @@ $o->{pages} = { $o->{var}{wiz_default_root} ||= 1; $o->{var}{wiz_ftp_resume} ||= 1; $o->{var}{wiz_ftp_fxp} ||= 0; - $o->{var}{wiz_port} = -e $ftp_port ? $ftp_port : "21"; + $o->{var}{wiz_port} = $ftp_port || "21"; }, data => [ { label => N("FTP Port:"), val => \$o->{var}{wiz_port}, help => 'Default port is 21 for an FTP server' }, |