From 576b6208d6defe240bfa2477d6dd19f1ed83bfaf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 2 Sep 2019 05:23:45 +0200 Subject: Cleaned most of outdated stuff --- .../files/util-linux-2.12r-cracklib-words.patch | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch (limited to 'sys-apps/util-linux/files/util-linux-2.12r-cracklib-words.patch') 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 | -- cgit v1.2.3