From 057f97683708a55269cc57394edac8a657c8eaff Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 23 Nov 2004 12:53:19 +0000 Subject: Relevant BUGIDs: Red Hat bz 140451 Purpose of commit: bugfix Commit summary: --------------- Convert uid gid from passwd entry always as decimal. Test failure. --- modules/pam_unix/support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pam_unix/support.c') diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index 5b23b8e9..5138a875 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -390,14 +390,14 @@ int _unix_getpwnam(pam_handle_t *pamh, const char *name, } memset(*ret, '\0', buflen); - (*ret)->pw_uid = strtol(suid, &p, 0); + (*ret)->pw_uid = strtol(suid, &p, 10); if ((strlen(sgid) == 0) || (*p != '\0')) { free(*ret); *ret = NULL; return matched; } - (*ret)->pw_gid = strtol(sgid, &p, 0); + (*ret)->pw_gid = strtol(sgid, &p, 10); if ((strlen(sgid) == 0) || (*p != '\0')) { free(*ret); *ret = NULL; -- cgit v1.2.3