Bug 14966 - system.dos_attr.mode does not contain correct information for hidden, archive or system
Summary: system.dos_attr.mode does not contain correct information for hidden, archive...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-31 14:20 UTC by Chris
Modified: 2022-01-31 14:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2022-01-31 14:20:32 UTC
I'm running against libsmbclient 4.10.16 17.el7_9 on Centos 7. Calling smbc_getFunctionGetxattr and querying the system.dos_attr.mode attribute against a hidden file or folder no longer returns correct information. It seems that we now receive a unix-like permission mask with no entries for hidden, archive or system.

Steps to reproduce:

Call smbc_getFunctionGetxattr as in https://github.com/eduardok/libsmbclient-php and request system.dos_attr.mode

Actual Results:

For a hidden file we receive 0x41ed

Expected Results:

A mask containing appropriate values for FILE_ATTRIBUTE_HIDDEN, FILE_ATTRIBUTE_ARCHIVE and FILE_ATTRIBUTE_SYSTEM.

I've found other reports of this issue online but no resolution or indications that we should be using an alternative method to retrieve these attributes.