Package: lintian Severity: wishlist Dear Maintainer,
I was prodded by Lamby to file this bugreport. :) I noticed in a package (not yet in Debian) that it uses grep on the passwd/group file directly instead of using getent. This hinders detecting users stored in a different database. Given that this still seems to exist within Debian packages from a quick code search, it would be useful to have that reported. https://sources.debian.org/src/proftpd-dfsg/1.3.5d-1/debian/proftpd-basic.postinst/?hl=28#L28 is an example from our pool, but there are more. The package where I stumbled upon this had the code a bit more complex, I'm unsure how this might be detectable: #v+ PASSWDFILE=/etc/passwd GROUPFILE=/etc/group frruid=`egrep "^frr:" $PASSWDFILE | awk -F ":" '{ print $3 }'` frrgid=`egrep "^frr:" $GROUPFILE | awk -F ":" '{ print $3 }'` frrvtygid=`egrep "^frrvty:" $GROUPFILE | awk -F ":" '{ print $3 }'` #v- But for the above example a "grep .* /etc/(passwd|group)" or something along that lines might be a good starting point. Enjoy, Rhonda -- Fühlst du dich mutlos, fass endlich Mut, los | Fühlst du dich hilflos, geh raus und hilf, los | Wir sind Helden Fühlst du dich machtlos, geh raus und mach, los | 23.55: Alles auf Anfang Fühlst du dich haltlos, such Halt und lass los |