RSS feed

nss-pam-ldapd branch master updated. 0.9.10-1-gbfcf002

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.9.10-1-gbfcf002

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  bfcf0025b6ba264e6c0c1899d9de2bad8f39ee1a (commit)
      from  bfe06969aeef0c9ef419ea6e5bf930962ed08b96 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit bfcf0025b6ba264e6c0c1899d9de2bad8f39ee1a
Author: Mizunashi Mana <mizunashi-mana@noreply.git>
Date:   Wed Sep 5 20:06:31 2018 +0900

    Fix crash in chsh.ldap
    Specify result type of getusershell.

diff --git a/utils/ b/utils/
index dcabfaf..92dba2f 100644
--- a/utils/
+++ b/utils/
@@ -28,9 +28,11 @@ import sys
 def list_shells():
     """List the shells from /etc/shells."""
     libc = ctypes.CDLL(ctypes.util.find_library("c"))
+    getusershell = libc.getusershell
+    getusershell.restype = ctypes.c_char_p
     while True:
-        shell = ctypes.c_char_p(libc.getusershell()).value
+        shell = getusershell()
         if not shell:
         yield shell


Summary of changes:
 utils/ | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

To unsubscribe send an email to or see