mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-26 14:03:17 +00:00
Except for the added (and sorted) includes, and the removal of redundant parentheses, this patch can be approximated with the following semantic patch: $ cat ~/tmp/spatch/streq.sp; @@ expression a, b; @@ - strcmp(a, b) == 0 + streq(a, b) @@ expression a, b; @@ - 0 == strcmp(a, b) + streq(a, b) @@ expression a, b; @@ - !strcmp(a, b) + streq(a, b) $ find contrib/ lib* src/ -type f \ | xargs spatch --sp-file ~/tmp/spatch/streq.sp --in-place; $ git restore lib/string/strcmp/streq.h; Signed-off-by: Alejandro Colomar <alx@kernel.org>
People keep sending various adduser programs and scripts... They are all in this directory. I haven't tested them, use at your own risk. Anyway, the best one I've seen so far is adduser-3.x from Debian. udbachk.tgz is a passwd/group/shadow file integrity checker. --marekm