CVS update: samba/source/nsswitch

abartlet at samba.org abartlet at samba.org
Sat Sep 7 15:41:23 EST 2002


Date:	Sat Sep  7 05:41:23 2002
Author:	abartlet

Update of /data/cvs/samba/source/nsswitch
In directory dp.samba.org:/tmp/cvs-serv695/nsswitch

Modified Files:
	pam_winbind.c pam_winbind.h wb_common.c wbinfo.c winbind_nss.c 
	winbind_nss_config.h 
Log Message:
Winbind client-side cleanups.

The global winbind file descriptor can cause havoc in some situations -
particulary when it becomes 0, 1 or 2.  This patch (based on some very nice
work by Hannes Schmidt <mail at schmidt-net.via.t-online.de>) starts to recitfy
the problem by ensuring that the close-on-exec flag is set, and that we move
above 3 in the file descriptor table.

I've also decided that the PAM module can close it's pipe handle on every
request - this isn't performance-critical code.

The next step is to do the same for nss_winbind.  (But things like getent()
might get in our way there).

This also cleans up some function prototypes, puts them in just one place.

Andrew Bartlett


Revisions:
pam_winbind.c		1.14 => 1.15
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/pam_winbind.c?r1=1.14&r2=1.15
pam_winbind.h		1.6 => 1.7
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/pam_winbind.h?r1=1.6&r2=1.7
wb_common.c		1.17 => 1.18
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/wb_common.c?r1=1.17&r2=1.18
wbinfo.c		1.49 => 1.50
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/wbinfo.c?r1=1.49&r2=1.50
winbind_nss.c		1.20 => 1.21
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbind_nss.c?r1=1.20&r2=1.21
winbind_nss_config.h		1.15 => 1.16
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbind_nss_config.h?r1=1.15&r2=1.16



More information about the samba-cvs mailing list