diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:54:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:54:40 +0000 |
commit | 315d0396fac6446740ac932700c991546e6e1fb6 (patch) | |
tree | 218a8a9aa4e826976bfa70ab353d6c41169cc047 /ftp_wizard | |
parent | 5f7566456ef3a657f9ba8882692b7a61467dff07 (diff) | |
download | drakwizard-315d0396fac6446740ac932700c991546e6e1fb6.tar drakwizard-315d0396fac6446740ac932700c991546e6e1fb6.tar.gz drakwizard-315d0396fac6446740ac932700c991546e6e1fb6.tar.bz2 drakwizard-315d0396fac6446740ac932700c991546e6e1fb6.tar.xz drakwizard-315d0396fac6446740ac932700c991546e6e1fb6.zip |
simplify, but the '-e' port really looks suspect...
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 7af7bbe6..5a93d069 100755 --- a/ftp_wizard/Proftpd.pm +++ b/ftp_wizard/Proftpd.pm @@ -121,7 +121,7 @@ $o->{pages} = { $o->{var}{wiz_default_root} ||= 1; $o->{var}{wiz_ftp_resume} ||= 1; $o->{var}{wiz_ftp_fxp} ||= 0; - if (-e $ftp_port) { $o->{var}{wiz_port} = $ftp_port } else { $o->{var}{wiz_port} = "21" }; + $o->{var}{wiz_port} = -e $ftp_port ? $ftp_port : "21"; }, data => [ { label => N('FTP Port:'), val => \$o->{var}{wiz_port}, help => 'Default port is 21 for an FTP server' }, |