mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
From metze's work on sparse attributes. FILE_ATTRIBUTE_SPARSE is valid on get but not on set.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Dec 20 20:11:22 CET 2010 on sn-devel-104
This commit is contained in:
parent
139e2cbb13
commit
e7707d5abd
@ -1211,8 +1211,7 @@ struct bitmap {
|
||||
FILE_ATTRIBUTE_HIDDEN|\
|
||||
FILE_ATTRIBUTE_SYSTEM|\
|
||||
FILE_ATTRIBUTE_DIRECTORY|\
|
||||
FILE_ATTRIBUTE_ARCHIVE|\
|
||||
FILE_ATTRIBUTE_SPARSE)
|
||||
FILE_ATTRIBUTE_ARCHIVE)
|
||||
|
||||
/* Flags - combined with attributes. */
|
||||
#define FILE_FLAG_WRITE_THROUGH 0x80000000L
|
||||
|
@ -318,7 +318,8 @@ static bool get_ea_dos_attribute(connection_struct *conn,
|
||||
if (S_ISDIR(smb_fname->st.st_ex_mode)) {
|
||||
dosattr |= aDIR;
|
||||
}
|
||||
*pattr = (uint32)(dosattr & SAMBA_ATTRIBUTES_MASK);
|
||||
/* FILE_ATTRIBUTE_SPARSE is valid on get but not on set. */
|
||||
*pattr = (uint32)(dosattr & (SAMBA_ATTRIBUTES_MASK|FILE_ATTRIBUTE_SPARSE));
|
||||
|
||||
DEBUG(8,("get_ea_dos_attribute returning (0x%x)", dosattr));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user