summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/ntvfs/posix/pvfs_qfileinfo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_qfileinfo.c b/source4/ntvfs/posix/pvfs_qfileinfo.c
index 51aadc07a5..5847b1a2cc 100644
--- a/source4/ntvfs/posix/pvfs_qfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_qfileinfo.c
@@ -182,7 +182,7 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
case RAW_FILEINFO_MODE_INFORMATION:
- info->mode_information.out.mode = 0; /* what is this? */
+ info->mode_information.out.mode = 0;
return NT_STATUS_OK;
case RAW_FILEINFO_ALIGNMENT_INFORMATION:
@@ -284,6 +284,10 @@ NTSTATUS pvfs_qfileinfo(struct ntvfs_module_context *ntvfs,
info->access_information.out.access_flags = f->access_mask;
break;
+ case RAW_FILEINFO_MODE_INFORMATION:
+ info->mode_information.out.mode = f->mode;
+ break;
+
default:
break;
}