ebuh
04-27-2009, 07:13 PM
Hi,
'./build versions' does not print the old version of ProFTPD if an old version of ProFTPD is installed.:
- unknown option: V
Latest version of ProFTPD: 1.3.2
Installed version of ProFTPD:
ProFTPD to 1.3.2 update is available.
The correct command to show ProFTPD's version is:
proftpd -v or
proftpd --version
In newer versions 'proftpd -V' shows the version and compile-time settings (same as --settings).
As 'proftpd -v' sends the output to stderr, you also have to redirect the stderr output to stdout, as pipe only captures stdout.
Fix:
Change line number 6774
PROFTPDV="`/usr/sbin/proftpd -V | grep 'Version:' | awk '{ print $2 }'`"
into
PROFTPDV="`/usr/sbin/proftpd -v 2>&1 | awk '{ print $4 }'`"
'./build versions' does not print the old version of ProFTPD if an old version of ProFTPD is installed.:
- unknown option: V
Latest version of ProFTPD: 1.3.2
Installed version of ProFTPD:
ProFTPD to 1.3.2 update is available.
The correct command to show ProFTPD's version is:
proftpd -v or
proftpd --version
In newer versions 'proftpd -V' shows the version and compile-time settings (same as --settings).
As 'proftpd -v' sends the output to stderr, you also have to redirect the stderr output to stdout, as pipe only captures stdout.
Fix:
Change line number 6774
PROFTPDV="`/usr/sbin/proftpd -V | grep 'Version:' | awk '{ print $2 }'`"
into
PROFTPDV="`/usr/sbin/proftpd -v 2>&1 | awk '{ print $4 }'`"