]> granicus.if.org Git - cracklib/commitdiff
Force grep to treat the input as text when formatting word files
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 11 Mar 2019 18:07:33 +0000 (19:07 +0100)
committerMike Frysinger <vapier@gmail.com>
Mon, 11 Mar 2019 18:34:48 +0000 (11:34 -0700)
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/cracklib/0003-Force-grep-to-treat-the-input-as-text-when-formattin.patch]

src/util/cracklib-format

index 1d7be5bb1f125e8356b040f73653c46ed9938760..b1de8e8b8cdbc663072c90849aac9369d1327374 100644 (file)
@@ -4,7 +4,7 @@
 # into cracklib-packer
 #
 gzip -cdf "$@" |
-    grep -v '^\(#\|$\)' |
+    grep -a -v '^\(#\|$\)' |
     tr '[A-Z]' '[a-z]' |
     tr -cd '\012[a-z][0-9]' |
     env LC_ALL=C sort -u