[PATCH] Prevent the overwriting of global errno in set file info code path.

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Mar 18 13:02:37 MDT 2010


On Thu, Mar 18, 2010 at 08:47:29PM +0200, Surbhi Palande wrote:
> Ya! I looked at this once again. You are right. The error number
> is NOT getting overwritten. I looked at the free_acl() and the
> allocation of entry code carefully.
> 
> Please do ignore this patch. I wonder how the patch worked for me!! 
> 
> I did find out the real problem though.
> 
> source3/lib/errmap_unix.c::map_nt_error_from_unix() gets called due to
> error in set_unix_posix_acl(). The errno set is: "ENOTSUP"

In master we have

#ifdef ENOTSUP
        { ENOTSUP,      NT_STATUS_NOT_SUPPORTED},
#endif

Is that okay for you?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100318/3ccca9a5/attachment.pgp>


More information about the samba-technical mailing list