diff options
-rw-r--r-- | source3/smbd/trans2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 0b62fd4f875..9e29c9c23c3 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3452,7 +3452,8 @@ NTSTATUS smbd_do_qfsinfo(struct smbXsrv_connection *xconn, ZERO_STRUCT(smb_fname); smb_fname.base_name = discard_const_p(char, filename); - if(SMB_VFS_STAT(conn, &smb_fname) != 0) { + if(info_level != SMB_FS_QUOTA_INFORMATION + && SMB_VFS_STAT(conn, &smb_fname) != 0) { DEBUG(2,("stat of . failed (%s)\n", strerror(errno))); return map_nt_error_from_unix(errno); } |