1
0
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:
Volker Lendecke 2023-10-06 15:43:55 +02:00 committed by Jeremy Allison
parent 29895176d2
commit c23d336ca4

View File

@ -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 {