[PATCH] Maintain DOS attributes of externally copied file

ZINKEVICIUS,MATT (HP-Loveland,ex1) matt_zinkevicius at hp.com
Mon Aug 6 14:16:33 GMT 2001

> From: Gerald Carter [mailto:gcarter at valinux.com]
> On Mon, 6 Aug 2001, ZINKEVICIUS,MATT (HP-Loveland,ex1) wrote:
> > As it stands, if you copy a file to samba it loses all DOS 
> attributes
> > (read-only, etc). This changes that:
> I just quickly looked and I think this should be handled by the
> 'map archive' smb.conf option applied by unix_mode() which is called
> a few lines up.  Have you tried playing with these options first?

Opps. Your right. unix_mode() does what you want if you are using
the 'x' bits to store DOS attributes, which I'm not and hence why I
needed to call file_chmod() explicitly. Ignore that patch.

> 	map archive
> 	map system
> 	map hidden
> ?  Granted we need a better way to handle storing DOS attributes
> that the 'x' bits.

Yep :-) The ACL database patch I'm working on stores the DOS
attributes along with the security descriptor in the database.


More information about the samba-technical mailing list