Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lnussel:crypt_blowfish:maint
pam-modules.openSUSE_12.1
0005-catch-retval-magic-by-ow-crypt-libxcrypt.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-catch-retval-magic-by-ow-crypt-libxcrypt.diff of Package pam-modules.openSUSE_12.1
From f0e1dcc08789da62c26236e3bc0e3b68ba6d0fd0 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Wed, 20 Jul 2011 11:16:56 +0200 Subject: [PATCH pam_unix2] catch retval magic by ow-crypt/libxcrypt Instead of returning NULL ow-crypt's retval magic returns "*0" or "*1". --- src/unix_passwd.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/unix_passwd.c b/src/unix_passwd.c index e00615b..80319d7 100644 --- a/src/unix_passwd.c +++ b/src/unix_passwd.c @@ -729,7 +729,9 @@ __do_setpass (pam_handle_t *pamh, int flags, user_t *data, options->use_crypt); return PAM_AUTHTOK_ERR; } - if (newpassword == NULL) + if (newpassword == NULL + /* catch retval magic by ow-crypt/libxcrypt */ + || !strcmp(newpassword, "*0") || !strcmp(newpassword, "*1")) { __write_message (pamh, flags, PAM_ERROR_MSG, _("crypt_r() returns NULL pointer")); -- 1.7.3.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor