[Git][debian-proftpd-team/proftpd][master] Lintian: maintainer-script-should-not-parse-etc-passwd-or-group

Hilmar Preuße gitlab at salsa.debian.org
Fri Oct 26 14:22:57 BST 2018


Hilmar Preuße pushed to branch master at Debian ProFTPD Team / proftpd


Commits:
ea2f01da by Hilmar Preuße at 2018-10-26T13:22:35Z
Lintian: maintainer-script-should-not-parse-etc-passwd-or-group

- - - - -


2 changed files:

- debian/changelog
- debian/proftpd-basic.postinst


Changes:

=====================================
debian/changelog
=====================================
@@ -14,6 +14,7 @@ proftpd-dfsg (1.3.6-3) UNRELEASED; urgency=medium
   * New Proftp module package: proftpd-mod-snmp.
   * Add "Enhances: proftpd-basic" to all modules built by this package.
   * d/rules: remove clean code, which is covered by upstreams Makefile.
+  * W: proftpd-basic: maintainer-script-should-not-parse-etc-passwd-or-group
 
  -- Francesco Paolo Lovergine <frankie at debian.org>  Tue, 01 May 2018 14:57:41 +0200
 


=====================================
debian/proftpd-basic.postinst
=====================================
@@ -25,7 +25,7 @@ MODULES_NEW=$ETC_DIR/modules.conf.proftpd-new
 
 installftp()
 {
-	if ! grep -q "^ftp:" /etc/passwd
+	if ! getent passwd ftp > /dev/null
 	then
 	    adduser --system ftp --home /srv/ftp || true
             if [ -f /usr/share/proftpd/templates/welcome.msg -a -d ~ftp ] ; then
@@ -37,7 +37,7 @@ installftp()
 
 add_sysuser()
 {
-	if ! grep -q "^proftpd:" /etc/passwd
+	if ! getent passwd proftpd > /dev/null
 	then
 		adduser --system --disabled-login --no-create-home --home /run/proftpd proftpd || true
 	else



View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/commit/ea2f01da7d280e1d5a1992d3607094bcae628932

-- 
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/commit/ea2f01da7d280e1d5a1992d3607094bcae628932
You're receiving this email because of your account on salsa.debian.org.


More information about the Pkg-proftpd-maintainers mailing list