examples: Expand IS_DOS_DIR() macros
authorVolker Lendecke <vl@samba.org>
Fri, 6 Oct 2023 13:43:55 +0000 (15:43 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Oct 2023 23:23:40 +0000 (23:23 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
examples/fuse/clifuse.c

index ba4aca751feb6a9e01ff187a125caf78d12b2475..59af1602980764a50302f80ba0ebf6c5d6360cdc 100644 (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 {