1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/sysutils/busybox/patches/busybox-05-update-shadow-or-passwd-not-both.patch
2017-12-01 20:06:40 +00:00

13 lines
407 B
Diff

diff -Naur a/loginutils/passwd.c b/loginutils/passwd.c
--- a/loginutils/passwd.c 2017-07-06 08:14:57.000000000 -0700
+++ b/loginutils/passwd.c 2017-09-11 17:06:07.572805135 -0700
@@ -220,7 +220,7 @@
if (rc > 0)
/* password in /etc/shadow was updated */
newp = (char*) "x";
- if (rc >= 0)
+ if (rc == 0)
/* 0 = /etc/shadow missing (not an error), >0 = passwd changed in /etc/shadow */
#endif
{