diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-10-04 16:49:52 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-10-04 16:49:52 (GMT) |
commit | 7c7479d7ea98f4becfd0012b0d50d2e4e3cb249c (patch) | |
tree | 3584252b0a469906e421c431ec313d689c1c0764 /abs/core/shadow/shadow-strncpy-usage.patch | |
parent | dc3bb983448c6da7f588014a1a0cb5f3d85d32be (diff) | |
download | linhes_pkgbuild-7c7479d7ea98f4becfd0012b0d50d2e4e3cb249c.zip linhes_pkgbuild-7c7479d7ea98f4becfd0012b0d50d2e4e3cb249c.tar.gz linhes_pkgbuild-7c7479d7ea98f4becfd0012b0d50d2e4e3cb249c.tar.bz2 |
shadow: update to 4.8.1
Diffstat (limited to 'abs/core/shadow/shadow-strncpy-usage.patch')
-rw-r--r-- | abs/core/shadow/shadow-strncpy-usage.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/abs/core/shadow/shadow-strncpy-usage.patch b/abs/core/shadow/shadow-strncpy-usage.patch deleted file mode 100644 index 5aba8fa..0000000 --- a/abs/core/shadow/shadow-strncpy-usage.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -u shadow-4.1.5/src/usermod.c.orig shadow-4.1.5/src/usermod.c ---- shadow-4.1.5/src/usermod.c.orig 2012-02-13 08:19:43.792146449 -0500 -+++ shadow-4.1.5/src/usermod.c 2012-02-13 08:21:19.375114500 -0500 -@@ -182,7 +182,7 @@ - struct tm *tp; - - if (date < 0) { -- strncpy (buf, "never", maxsize); -+ strncpy (buf, "never", maxsize - 1); - } else { - time_t t = (time_t) date; - tp = gmtime (&t); -diff -u shadow-4.1.5/src/login.c.orig shadow-4.1.5/src/login.c ---- shadow-4.1.5/src/login.c.orig 2012-02-13 08:19:50.951994454 -0500 -+++ shadow-4.1.5/src/login.c 2012-02-13 08:21:04.490430937 -0500 -@@ -752,7 +752,8 @@ - _("%s login: "), hostn); - } else { - strncpy (loginprompt, _("login: "), -- sizeof (loginprompt)); -+ sizeof (loginprompt) - 1); -+ loginprompt[sizeof (loginprompt) - 1] = '\0'; - } - - retcode = pam_set_item (pamh, PAM_USER_PROMPT, loginprompt); |