[Samba] filename_convert_internal: checkname failed NT_STATUS_INVALID_PARAMETER
Jeremy Allison
jra at samba.org
Thu May 5 20:28:41 UTC 2016
On Tue, May 03, 2016 at 01:42:33AM +0000, Andrew Perry wrote:
> Dear All
>
> I have a PCBSD machine with /media shared using samba.
>
> Any microsoft clients can successfully connect to /media and browse directories I have created there.
>
> When I plug in a usb device, I mount it into /media eg: one labelled "PENDRIVE" becomes /media/PENDRIVE
>
> Some clients can successfully read /media/PENDRIVE, others cannot. Although the clients that cannot view the directory, can successfully copy a file from there using the complete filename eg: if mapped as the U: drive on a microsoft win7 client I can copy u:\pendrive\claim.pdf from there
>
> I looked at the logs under /var/log/samba, specifically log.hostname and noticed that for the client that fails there is
>
> [2016/05/03 11:10:23.908156, 3] ../source3/smbd/vfs.c:1161(check_reduced_name)
> check_reduced_name [PENDRIVE/*] [/media]
> [2016/05/03 11:10:23.908245, 3] ../source3/smbd/vfs.c:1215(check_reduced_name)
> check_reduced_name: couldn't get realpath for PENDRIVE/*
> [2016/05/03 11:10:23.908302, 3] ../source3/smbd/filename.c:1431(filename_convert_internal)
> filename_convert_internal: check_name failed for name PENDRIVE/* with NT_STATUS_INVALID_PARAMETER
> [2016/05/03 11:10:23.908363, 3] ../source3/smbd/error.c:82(error_packet_set)
> NT error packet at ../source3/smbd/trans2.c(2568) cmd=50 (SMBtrans2) NT_STATUS_INVALID_PARAMETE
Yes I'm puzzled. realpath shouldn't be called for a name containing
a wildcard character.
Can you post the full debug level 10 of a failing client on a bug report ?
More information about the samba
mailing list