diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 6c77e85f20e..e518c7b48ef 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -2374,6 +2374,10 @@ NTSTATUS smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx, ppdata, end_data, &last_entry_off); + if (NT_STATUS_EQUAL(status, NT_STATUS_ILLEGAL_CHARACTER)) { + DEBUG(1,("Conversion error: illegal character: %s\n", + smb_fname_str_dbg(smb_fname))); + } TALLOC_FREE(fname); TALLOC_FREE(smb_fname); if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) {