This was fixed in Natty but a little bit differently, see bug #656415 .
Should the fix be taken from there and SRU'd back to Maverick and Lucid
or is the above patch sufficient (or maybe even better) ?

In Natty there is this for checking if the user/group exists:

if ! getent passwd | grep -q "^${_USERNAME}:"
if ! getent group | grep -q "^${_USERNAME}:"

And in this bugreport the fix being suggested in comment #6 is using
getent to find the entry, without using grep. If nothing else, it feels
cleaner:

if ! getent passwd ${_USERNAME} >/dev/null 2>&1
if ! getent group ${_USERNAME} >/dev/null 2>&1

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vsftpd in ubuntu.
https://bugs.launchpad.net/bugs/629234

Title:
  package vsftpd 2.2.2-3ubuntu6 failed to install/upgrade: subprocess installed 
post-installation script returned error exit status 1

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to