[Bug 11771] Changing the password of another user as root causes 'passwd' to crash
bugzilla at busybox.net
bugzilla at busybox.net
Wed Apr 10 16:04:52 UTC 2019
https://bugs.busybox.net/show_bug.cgi?id=11771
--- Comment #1 from Herve GOURMELON <hgourmelon at ekinops.net> ---
Wrong patch, indented with spaces instead of tabulations. Here is the correct
version:
diff -urBN busybox-1.29.3/loginutils/passwd.c
busybox-1.29.3-new/loginutils/passwd.c
--- busybox-1.29.3/loginutils/passwd.c 2018-07-02 13:23:06.000000000 +0200
+++ busybox-1.29.3-new/loginutils/passwd.c 2019-04-10 17:03:51.649975516
+0200
@@ -43,7 +43,7 @@
static char* new_password(const struct passwd *pw, uid_t myuid, const char
*algo)
{
char salt[MAX_PW_SALT_LEN];
- char *orig = (char*)"";
+ char *orig = NULL;//(char*)"";
char *newp = NULL;
char *cp = NULL;
char *ret = NULL; /* failure so far */
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list