projects
/
libnss-afs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5f46b9
)
workaround for a bug in recent versions of pam_unix.so
master
2.01
author
Adam Megacz
<adam@megacz.com>
Sun, 3 Jan 2010 06:30:12 +0000
(06:30 +0000)
committer
Adam Megacz
<adam@megacz.com>
Sun, 3 Jan 2010 06:30:12 +0000
(06:30 +0000)
debian/changelog
patch
|
blob
|
history
nss_afs.c
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
7136f1b
..
5680288
100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-1,3
+1,9
@@
+libnss-afs (2.01) unstable; urgency=low
+
+ * workaround for a bug in recent versions of pam_unix.so
+
+ -- Adam Megacz <adam@megacz.com> Sun, 03 Jan 2010 06:29:16 +0000
+
libnss-afs (2.0) unstable; urgency=low
* return NOT_FOUND if invoked outside of nscd
libnss-afs (2.0) unstable; urgency=low
* return NOT_FOUND if invoked outside of nscd
diff --git
a/nss_afs.c
b/nss_afs.c
index
de52438
..
29d4511
100644
(file)
--- a/
nss_afs.c
+++ b/
nss_afs.c
@@
-388,7
+388,7
@@
enum nss_status _nss_afs_getgrgid_r (gid_t gid,
result->gr_passwd=buffer;
result->gr_passwd=buffer;
- if (!cpstr("x",&buffer,&buflen)) break;
+ if (!cpstr("z",&buffer,&buflen)) break;
if (buflen < sizeof(char*)) break;
result->gr_mem=buffer;
if (buflen < sizeof(char*)) break;
result->gr_mem=buffer;
@@
-414,9
+414,9
@@
enum nss_status fill_result_buf(uid_t uid,
int *errnop) {
result_buf->pw_name = name;
do {
int *errnop) {
result_buf->pw_name = name;
do {
- /* set the password to "x" */
+ /* set the password to "z"; we can't use "x" because of pam_unix.so */
result_buf->pw_passwd = buffer;
result_buf->pw_passwd = buffer;
- if ( ! cpstr("x",&buffer, &buflen) ) break;
+ if ( ! cpstr("z",&buffer, &buflen) ) break;
/* the uid and gid are both the uid passed in */
result_buf->pw_uid = uid;
/* the uid and gid are both the uid passed in */
result_buf->pw_uid = uid;