From 616777f029e462f53c5118d79de8c6405a5fb7c1 Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Fri, 5 Jul 2013 11:32:27 +0200 Subject: s3:smbd: allow status code in smbd_do_qfsinfo() to be set by information class handler Reviewed-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/smbd/trans2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index f7691044a1..7617662080 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; } /**************************************************************************** -- cgit