termux-packages/packages/libsasl/auth_getpwent.c.patch

26 lines
719 B
Diff

diff -u -r ../cyrus-sasl-2.1.26/saslauthd/auth_getpwent.c ./saslauthd/auth_getpwent.c
--- ../cyrus-sasl-2.1.26/saslauthd/auth_getpwent.c 2012-10-12 10:05:48.000000000 -0400
+++ ./saslauthd/auth_getpwent.c 2015-12-13 20:55:42.978090186 -0500
@@ -105,17 +105,21 @@
}
}
+#ifndef __ANDROID__
if (strcmp(pw->pw_passwd, (const char *)crypt(password, pw->pw_passwd))) {
if (flags & VERBOSE) {
syslog(LOG_DEBUG, "DEBUG: auth_getpwent: %s: invalid password", login);
}
+#endif
RETURN("NO Incorrect password");
+#ifndef __ANDROID__
}
if (flags & VERBOSE) {
syslog(LOG_DEBUG, "DEBUG: auth_getpwent: OK: %s", login);
}
RETURN("OK");
+#endif
}
/* END FUNCTION: auth_getpwent */