ebuh
New member
Hi,
'./build versions' does not print the old version of ProFTPD if an old version of ProFTPD is installed.:
The correct command to show ProFTPD's version is:
or
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
into
'./build versions' does not print the old version of ProFTPD if an old version of ProFTPD is installed.:
Code:
- 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:
Code:
proftpd -v
Code:
proftpd --version
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
Code:
PROFTPDV="`/usr/sbin/proftpd -V | grep 'Version:' | awk '{ print $2 }'`"
Code:
PROFTPDV="`/usr/sbin/proftpd -v 2>&1 | awk '{ print $4 }'`"