CVS update: samba/source/smbd

jra at samba.anu.edu.au jra at samba.anu.edu.au
Tue Dec 29 11:03:38 EST 1998


Date:	Tuesday December 29, 1998 @ 11:03
Author:	jra

Update of /data/cvs/samba/source/smbd
In directory samba:/tmp/cvs-serv27609/smbd

Modified Files:
      Tag: SAMBA_2_0
	chgpasswd.c close.c fileio.c open.c reply.c 
Log Message:
lib/signal.c: Added CatchChildLeaveStatus() call needed in smbd/open.c and smbd/chgpasswd.c.
smbd/chgpasswd.c
smbd/open.c: Ensure that we replace SIGCLD handler with CatchChildLeaveStatus()
             *before* we expect to reap a child status - and reset it to CatchChild()
             after we've done the sys_waitpid(). The original CatchChild() code
             would eat the status code from the zombie in the signal handler, meaning
             that the sys_waitpid() calls in check_access_allowed_for_current_user()
             and chgpasswd would never return a status.
smbd/open.c:
smbd/reply.c:
smbd/close.c: Check error return on close() calls - ensure a valid error return
              is sent back to the client. This catches the "file truncated"
              bug when a user has run out of quota (or space) and the ENOSPC
              error is returned on the *close()* call, not the write() (eg. on
              an nfs mounted drive).
smbd/fileio.c: Added check for ESPIPE on sys_lseek() in file_seek() to allow
               people to use Windows clients to communicate with UNIX fifo's
               (like they could in 1.9.18).
Jeremy.



More information about the samba-cvs mailing list