lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1867 - nss-pam-ldapd/nss

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

nss-pam-ldapd commit: r1867 - nss-pam-ldapd/nss



Author: arthur
Date: Sun Dec 16 22:31:41 2012
New Revision: 1867
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1867&view=revision

Log:
also no longer use NSS_BYINT32() in Solaris (fixes r1864)

Modified:
   nss-pam-ldapd/nss/ethers.c
   nss-pam-ldapd/nss/group.c
   nss-pam-ldapd/nss/passwd.c

Modified: nss-pam-ldapd/nss/ethers.c
==============================================================================
--- nss-pam-ldapd/nss/ethers.c  Sun Dec 16 16:25:57 2012        (r1866)
+++ nss-pam-ldapd/nss/ethers.c  Sun Dec 16 22:31:41 2012        (r1867)
@@ -163,9 +163,9 @@
 static nss_status_t ethers_getntohost(nss_backend_t UNUSED(*be),void *args)
 {
   struct ether_addr *addr=(struct ether_addr *)(NSS_ARGS(args)->key.ether);
-  NSS_BYTYPE(NSLCD_ACTION_ETHER_BYETHER,
-             *addr,uint8_t[6],
-             read_result(fp,args,1));
+  NSS_BYGEN(NSLCD_ACTION_ETHER_BYETHER,
+            WRITE(fp,addr,sizeof(uint8_t[6])),
+            read_result(fp,args,1));
 }
 
 static nss_backend_op_t ethers_ops[]={

Modified: nss-pam-ldapd/nss/group.c
==============================================================================
--- nss-pam-ldapd/nss/group.c   Sun Dec 16 16:25:57 2012        (r1866)
+++ nss-pam-ldapd/nss/group.c   Sun Dec 16 22:31:41 2012        (r1867)
@@ -227,9 +227,9 @@
 
 static nss_status_t group_getgrgid(nss_backend_t UNUSED(*be),void *args)
 {
-  NSS_BYTYPE(NSLCD_ACTION_GROUP_BYGID,
-             NSS_ARGS(args)->key.gid,gid_t,
-             read_result(fp,args));
+  NSS_BYINT32(NSLCD_ACTION_GROUP_BYGID,
+              NSS_ARGS(args)->key.gid,
+              read_result(fp,args));
 }
 
 static nss_status_t group_setgrent(nss_backend_t *be,void UNUSED(*args))

Modified: nss-pam-ldapd/nss/passwd.c
==============================================================================
--- nss-pam-ldapd/nss/passwd.c  Sun Dec 16 16:25:57 2012        (r1866)
+++ nss-pam-ldapd/nss/passwd.c  Sun Dec 16 22:31:41 2012        (r1867)
@@ -129,9 +129,9 @@
 
 static nss_status_t passwd_getpwuid(nss_backend_t UNUSED(*be),void *args)
 {
-  NSS_BYTYPE(NSLCD_ACTION_PASSWD_BYUID,
-             NSS_ARGS(args)->key.uid,uid_t,
-             read_result(fp,args));
+  NSS_BYINT32(NSLCD_ACTION_PASSWD_BYUID,
+              NSS_ARGS(args)->key.uid,
+              read_result(fp,args));
 }
 
 /* open a connection to the nslcd and write the request */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/