mirror of
https://github.com/samba-team/samba.git
synced 2025-12-04 08:23:50 +03:00
s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLY
This means we use just one constant for this file attribute. Andrew Bartlett
This commit is contained in:
@@ -1611,7 +1611,7 @@ SMBC_chmod_ctx(SMBCCTX *context,
|
||||
|
||||
mode = 0;
|
||||
|
||||
if (!(newmode & (S_IWUSR | S_IWGRP | S_IWOTH))) mode |= aRONLY;
|
||||
if (!(newmode & (S_IWUSR | S_IWGRP | S_IWOTH))) mode |= FILE_ATTRIBUTE_READONLY;
|
||||
if ((newmode & S_IXUSR) && lp_map_archive(-1)) mode |= aARCH;
|
||||
if ((newmode & S_IXGRP) && lp_map_system(-1)) mode |= aSYSTEM;
|
||||
if ((newmode & S_IXOTH) && lp_map_hidden(-1)) mode |= aHIDDEN;
|
||||
|
||||
Reference in New Issue
Block a user