diff -Nru vsftpd-2.3.2/debian/changelog vsftpd-2.3.2/debian/changelog
--- vsftpd-2.3.2/debian/changelog       2010-12-06 07:10:53.000000000 -0500
+++ vsftpd-2.3.2/debian/changelog       2010-12-14 16:16:22.000000000 -0500
@@ -1,3 +1,9 @@
+vsftpd (2.3.2-7) experimental; urgency=low
+
+  * fix small potential issue with adding new user (Closes #607129)
+
+ -- Scott Moser <smo...@ubuntu.com>  Tue, 14 Dec 2010 16:15:38 -0500
+
 vsftpd (2.3.2-6) experimental; urgency=low

   * Adding Danish debconf translations from Joe Dalton
diff -Nru vsftpd-2.3.2/debian/vsftpd.postinst 
vsftpd-2.3.2/debian/vsftpd.postinst
--- vsftpd-2.3.2/debian/vsftpd.postinst 2010-11-26 11:20:26.000000000 -0500
+++ vsftpd-2.3.2/debian/vsftpd.postinst 2010-12-14 16:17:08.000000000 -0500
@@ -16,10 +16,10 @@

                db_stop

-               if ! getent passwd | grep -q "^${_USERNAME}:"
+               if ! getent passwd "${_USERNAME}"
                then
                        adduser --system --home ${_DIRECTORY} --no-create-home 
--quiet --gecos 'ftp daemon' --group ${_USERNAME}
-               elif ! getent group | grep -q "^${_USERNAME}:"
+               elif ! getent group "${_USERNAME}"
                then
                        addgroup --system --quiet ${_USERNAME}
                        gpasswd -a ${_USERNAME} ${_USERNAME}



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to