From 977fb9a916c1f2f7cb5ceba4db89d2e0155b37a1 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 6 Jun 2013 16:23:35 +0800 Subject: 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- .../tinylogin-1.4/passwd_rotate_check.patch | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch (limited to 'meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch') 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 @@ -Upstream-Status: Inappropriate [legacy version] - -Fix rotate check logic - -Rotate passwd checking code has logic error, which writes data into -un-allocated memory. This patch fixes the issue. - -Signed-off-by: Dongxiao Xu - -diff --git a/libbb/obscure.c b/libbb/obscure.c -index 750b611..4a07b5f 100644 ---- a/libbb/obscure.c -+++ b/libbb/obscure.c -@@ -135,7 +135,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) - { - const char *msg; - char *newmono, *wrapped; -- int lenwrap; -+ int lenold, lenwrap; - - if (strcmp(newval, old) == 0) - return "no change"; -@@ -144,7 +144,8 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) - - msg = NULL; - newmono = str_lower(xstrdup(newval)); -- lenwrap = strlen(old) * 2 + 1; -+ lenold = strlen(old); -+ lenwrap = lenold * 2 + 1; - wrapped = (char *) xmalloc(lenwrap); - str_lower(strcpy(wrapped, old)); - -@@ -158,7 +159,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) - msg = "too similiar"; - - else { -- safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1); -+ safe_strncpy(wrapped + lenold, wrapped, lenold + 1); - if (strstr(wrapped, newmono)) - msg = "rotated"; - } -- cgit v1.2.3-54-g00ecf