diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-06-06 16:23:35 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-25 17:44:53 +0100 |
commit | 977fb9a916c1f2f7cb5ceba4db89d2e0155b37a1 (patch) | |
tree | 55c68bb8c3757a29414f7c14aa9862a57450be47 /meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch | |
parent | 8013f6e6aef28359d72ce3b21d5d704e19ceee69 (diff) | |
download | poky-977fb9a916c1f2f7cb5ceba4db89d2e0155b37a1.tar.gz |
tinylogin: remove recipe
tinylogin has been deprecated and the functionality ported into busybox.
We now use busybox as the login manager, so the tinylogin recipe could
be deleted.
[YOCTO #4207]
(From OE-Core rev: 2762ff976a3473be4259889029e048ab8b3be5ab)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch')
-rw-r--r-- | meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch b/meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch deleted file mode 100644 index 513ee5eda7..0000000000 --- a/meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | Upstream-Status: Inappropriate [legacy version] | ||
2 | |||
3 | Fix rotate check logic | ||
4 | |||
5 | Rotate passwd checking code has logic error, which writes data into | ||
6 | un-allocated memory. This patch fixes the issue. | ||
7 | |||
8 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
9 | |||
10 | diff --git a/libbb/obscure.c b/libbb/obscure.c | ||
11 | index 750b611..4a07b5f 100644 | ||
12 | --- a/libbb/obscure.c | ||
13 | +++ b/libbb/obscure.c | ||
14 | @@ -135,7 +135,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) | ||
15 | { | ||
16 | const char *msg; | ||
17 | char *newmono, *wrapped; | ||
18 | - int lenwrap; | ||
19 | + int lenold, lenwrap; | ||
20 | |||
21 | if (strcmp(newval, old) == 0) | ||
22 | return "no change"; | ||
23 | @@ -144,7 +144,8 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) | ||
24 | |||
25 | msg = NULL; | ||
26 | newmono = str_lower(xstrdup(newval)); | ||
27 | - lenwrap = strlen(old) * 2 + 1; | ||
28 | + lenold = strlen(old); | ||
29 | + lenwrap = lenold * 2 + 1; | ||
30 | wrapped = (char *) xmalloc(lenwrap); | ||
31 | str_lower(strcpy(wrapped, old)); | ||
32 | |||
33 | @@ -158,7 +159,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) | ||
34 | msg = "too similiar"; | ||
35 | |||
36 | else { | ||
37 | - safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1); | ||
38 | + safe_strncpy(wrapped + lenold, wrapped, lenold + 1); | ||
39 | if (strstr(wrapped, newmono)) | ||
40 | msg = "rotated"; | ||
41 | } | ||