diff options
Diffstat (limited to 'meta/recipes-extended/cracklib')
-rw-r--r-- | meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch | 53 | ||||
-rw-r--r-- | meta/recipes-extended/cracklib/cracklib_2.8.22.bb | 3 |
2 files changed, 55 insertions, 1 deletions
diff --git a/meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch b/meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch new file mode 100644 index 0000000000..6210e82121 --- /dev/null +++ b/meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 06f9a88b5dd5597f9198ea0cb34f5e96f180e6e3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Sat, 27 Apr 2013 16:02:30 +0800 | ||
4 | Subject: [PATCH] craklib:fix testnum and teststr failed | ||
5 | |||
6 | Error log: | ||
7 | ... | ||
8 | $ ./testnum | ||
9 | (null).pwd.gz: No such file or directory | ||
10 | PWOpen: No such file or directory | ||
11 | |||
12 | $ ./util/teststr | ||
13 | (null).pwd.gz: No such file or directory | ||
14 | PWOpen: No such file or directory | ||
15 | ... | ||
16 | Set DEFAULT_CRACKLIB_DICT as the path of PWOpen | ||
17 | |||
18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
19 | Upstream-Status: Pending | ||
20 | --- | ||
21 | util/testnum.c | 2 +- | ||
22 | util/teststr.c | 2 +- | ||
23 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
24 | |||
25 | diff --git a/util/testnum.c b/util/testnum.c | ||
26 | index ae2246d..ca210ff 100644 | ||
27 | --- a/util/testnum.c | ||
28 | +++ b/util/testnum.c | ||
29 | @@ -20,7 +20,7 @@ main () | ||
30 | PWDICT *pwp; | ||
31 | char buffer[STRINGSIZE]; | ||
32 | |||
33 | - if (!(pwp = PWOpen (NULL, "r"))) | ||
34 | + if (!(pwp = PWOpen (DEFAULT_CRACKLIB_DICT, "r"))) | ||
35 | { | ||
36 | perror ("PWOpen"); | ||
37 | return (-1); | ||
38 | diff --git a/util/teststr.c b/util/teststr.c | ||
39 | index 2a31fa4..9fb9cda 100644 | ||
40 | --- a/util/teststr.c | ||
41 | +++ b/util/teststr.c | ||
42 | @@ -15,7 +15,7 @@ main () | ||
43 | PWDICT *pwp; | ||
44 | char buffer[STRINGSIZE]; | ||
45 | |||
46 | - if (!(pwp = PWOpen (NULL, "r"))) | ||
47 | + if (!(pwp = PWOpen (DEFAULT_CRACKLIB_DICT, "r"))) | ||
48 | { | ||
49 | perror ("PWOpen"); | ||
50 | return (-1); | ||
51 | -- | ||
52 | 1.7.10.4 | ||
53 | |||
diff --git a/meta/recipes-extended/cracklib/cracklib_2.8.22.bb b/meta/recipes-extended/cracklib/cracklib_2.8.22.bb index 349c74f7a9..ae5abc4ece 100644 --- a/meta/recipes-extended/cracklib/cracklib_2.8.22.bb +++ b/meta/recipes-extended/cracklib/cracklib_2.8.22.bb | |||
@@ -11,7 +11,8 @@ PR ="r0" | |||
11 | EXTRA_OECONF = "--without-python" | 11 | EXTRA_OECONF = "--without-python" |
12 | 12 | ||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/cracklib/cracklib-${PV}.tar.gz \ | 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/cracklib/cracklib-${PV}.tar.gz \ |
14 | file://0001-packlib.c-support-dictionary-byte-order-dependent.patch" | 14 | file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \ |
15 | file://0002-craklib-fix-testnum-and-teststr-failed.patch" | ||
15 | 16 | ||
16 | SRC_URI[md5sum] = "463177b5c29c7a598c991e12a4898e06" | 17 | SRC_URI[md5sum] = "463177b5c29c7a598c991e12a4898e06" |
17 | SRC_URI[sha256sum] = "feaff49bfb513ec10b2618c00d2f7f60776ba93fcc5fa22dd3479dd9cad9f770" | 18 | SRC_URI[sha256sum] = "feaff49bfb513ec10b2618c00d2f7f60776ba93fcc5fa22dd3479dd9cad9f770" |