mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
examples: Expand IS_DOS_DIR() macros
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
29895176d2
commit
c23d336ca4
@ -370,7 +370,7 @@ static NTSTATUS cli_get_unixattr_recv(struct tevent_req *req,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (IS_DOS_DIR(state->mode)) {
|
||||
if (state->mode & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
st->st_mode = (S_IFDIR | 0555);
|
||||
st->st_nlink = 2;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user