summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 48c0053360..5eb626db2b 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -923,7 +923,8 @@ void construct_reply_common(char *inbuf,char *outbuf)
SCVAL(outbuf,smb_reh,0);
SCVAL(outbuf,smb_flg, FLAG_REPLY | (CVAL(inbuf,smb_flg) & FLAG_CASELESS_PATHNAMES));
SSVAL(outbuf,smb_flg2,
- FLAGS2_UNICODE_STRINGS | FLAGS2_LONG_PATH_COMPONENTS |
+ (SVAL(inbuf,smb_flg2) & FLAGS2_UNICODE_STRINGS) |
+ FLAGS2_LONG_PATH_COMPONENTS |
FLAGS2_32_BIT_ERROR_CODES | FLAGS2_EXTENDED_SECURITY);
SSVAL(outbuf,smb_err,SMB_SUCCESS);