summaryrefslogtreecommitdiffstats
path: root/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-02 05:23:45 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-02 05:23:45 +0200
commit576b6208d6defe240bfa2477d6dd19f1ed83bfaf (patch)
tree7d54883f16cccc4cbd414398d7fec3c437b36b49 /sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch
parentfdd6b67a78a966f6a2131de8fe0e539316511083 (diff)
downloaddarklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.gz
darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.bz2
darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.xz
darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.zip
Cleaned most of outdated stuff
Diffstat (limited to 'sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch')
-rw-r--r--sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch b/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch
deleted file mode 100644
index 30bc7e0..0000000
--- a/sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- misc-utils/look.c
-+++ misc-utils/look.c
-@@ -137,7 +137,15 @@
- *++p = '\0';
-
- if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
-- err("%s: %s", file, strerror(errno));
-+ {
-+ /* if opening the primary file failed, fall back to cracklib word files */
-+ file = "/usr/share/dict/cracklib-words";
-+ if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) {
-+ file = "/usr/share/dict/cracklib-small";
-+ if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
-+ err("%s: %s\n\tplease emerge sys-apps/cracklib-words or sys-apps/miscfiles", file, strerror(errno));
-+ }
-+ }
- front = mmap(NULL, (size_t) sb.st_size, PROT_READ,
- #ifdef MAP_FILE
- MAP_FILE |