[Bug 648202] Re: vsftpd started even if not in standalone mode

Launchpad Bug Tracker 648202 at bugs.launchpad.net
Mon Feb 28 16:15:11 UTC 2011


This bug was fixed in the package vsftpd - 2.3.2-3ubuntu3

---------------
vsftpd (2.3.2-3ubuntu3) natty; urgency=low

  * debian/vsftpd.upstart: Fix start of vsftpd even if not in standalone mode.
    Thanks to Stephane Chazelas (LP: #648202)
 -- Andres Rodriguez <andreserl at ubuntu.com>   Fri, 25 Feb 2011 15:16:09 -0500

** Changed in: vsftpd (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/648202

Title:
  vsftpd started even if not in standalone mode

Status in “vsftpd” package in Ubuntu:
  Fix Released
Status in “vsftpd” source package in Lucid:
  In Progress
Status in “vsftpd” source package in Maverick:
  Confirmed

Bug description:
  Binary package hint: vsftpd

  (lucid vsftpd 2.2.2-3ubuntu6)

  because of a syntax error in /etc/init/vsftpd.con, vsftd is started
  (and respawns a lot as it fails to start) if there's no "listen=yes"
  in /etc/vsftpd.conf

  /etc/init/vsftpd.conf has:

                  if [ -e  "${CONFFILE}" ] && !egrep -iq "^
  *listen(_ipv6)? *= *yes" "${CONFFILE}"

  without space between ! and egrep. As a result !egrep returns with an
  error ("!egrep" command not found) and as a result, the script assumes
  the "listen = yes" line is in the file.

  Moreover, if the /etc/vsftpd.conf file is not there, vsftpd is also
  started which I suspect was not intended.

  Moreover egrep is not a POSIX command.

  Would be better written as:

  if ! grep -qEis --
  '^[[:blank:]]*listen(_ipv6)?[[:blank:]]*=[[:blank:]]*yes' "$CONFFILE";
  then...



More information about the Ubuntu-sponsors mailing list