From: Ralph Wuerthner Date: Fri, 5 Jul 2013 09:32:27 +0000 (+0200) Subject: s3:smbd: allow status code in smbd_do_qfsinfo() to be set by information class handler X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=616777f029e462f53c5118d79de8c6405a5fb7c1 s3:smbd: allow status code in smbd_do_qfsinfo() to be set by information class handler Reviewed-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index f7691044a1ac..76176620800e 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3132,6 +3132,7 @@ NTSTATUS smbd_do_qfsinfo(connection_struct *conn, uint32 additional_flags = 0; struct smb_filename smb_fname; SMB_STRUCT_STAT st; + NTSTATUS status = NT_STATUS_OK; if (fname == NULL || fname->base_name == NULL) { filename = "."; @@ -3667,7 +3668,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned } *ret_data_len = data_len; - return NT_STATUS_OK; + return status; } /****************************************************************************