Change directory_create_or_exist()

Jelmer Vernooij jelmer at samba.org
Wed May 18 11:33:08 MDT 2011


On Tue, 2011-05-17 at 15:40 +0200, Andreas Schneider wrote:
> 
> 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?
That directory can be one that's specified by the user; I'm not sure if
it's a good idea to automatically change the permissions of a user
directory, especially making it more public than it was before.

In this case, perhaps we should just do the right thing when we create
it?

Cheers,

Jelmer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110518/fa902e52/attachment.pgp>


More information about the samba-technical mailing list