diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index f4508d07f16..17d71117ed8 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -731,6 +731,7 @@ int reply_ntcreate_and_X(connection_struct *conn, /* Can't open a temp directory. IFS kit test. */ if (file_attributes & FILE_ATTRIBUTE_TEMPORARY) { + restore_case_semantics(conn, file_attributes); END_PROFILE(SMBntcreateX); return ERROR_NT(NT_STATUS_INVALID_PARAMETER); }