Change directory_create_or_exist()

Jeremy Allison jra at samba.org
Tue May 17 18:49:03 MDT 2011


On Tue, May 17, 2011 at 03:40:48PM +0200, Andreas Schneider wrote:
> Hi,
> 
> on the buildfarm we see currently the error.
> 
> invalid permissions on directory 
> '/memdisk/build/samba_4_0_test/st/client/ncalrpcdir': has 0700 should be 0755
> ../source4/smbd/service_named_pipe.c:206: Failed to create ncalrpc pipe 
> directory '/memdisk/build/samba_4_0_test/st/client/ncalrpcdir' - 
> NT_STATUS_OBJECT_NAME_NOT_FOUND
> 
> Wouldn't it make sense that we try a chmod() to fix the permissions on the 
> directory before we fail?

For reasons I can't properly articulate this makes me nervous :-).
Adds one more pathname race condition I suppose.


More information about the samba-technical mailing list