From: Noel Power Date: Tue, 28 Feb 2017 11:36:47 +0000 (+0000) Subject: s3/smbd: Don't stat when doing a quota operation (as it's a fake file) X-Git-Tag: ldb-1.3.6~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d10a32cf881049e0e949dd5236380b0758ab02da;p=thirdparty%2Fsamba.git s3/smbd: Don't stat when doing a quota operation (as it's a fake file) calling SMB_VFS_STAT on the quota fake file fails and caused FS_INFO/FileFsControlInfo request to error out early, in turn stopped a Win8.1 client from proceeding with quota queries. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13553 Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- 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); }