Re-add umask(0) code removed by commit 3a7c2777ee0de37d758fe81d67d6836a8354825e
authorJeremy Allison <jra@samba.org>
Tue, 18 Jun 2013 00:02:56 +0000 (17:02 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jun 2013 02:31:27 +0000 (04:31 +0200)
commit5c4772ec1d562a4547391e1dd4956c43e3d635a7
tree5f766eb15706417db5a2e2c608fecefa9932ced7
parentfcc43cfbe34f3e8039c5e1364fc327f3d7b88b12
Re-add umask(0) code removed by commit 3a7c2777ee0de37d758fe81d67d6836a8354825e

Without the umask code the pipe permissions are affected by the
umask of the calling process. As only smbd currently sets its
umask to zero (nmbd and winbindd should do the same) this causes
the winbindd pipe to be unavailable to the nss library code unless
winbindd is run from an init process that explicitly sets umask
to zero. When testing from the command line this can be hard to
track down :-).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jun 18 04:31:27 CEST 2013 on sn-devel-104
source3/lib/util_sock.c