[Samba] SMB Trans2 Response and STATUS_OBJECT_NAME_NOT_FOUND

Jeremy Allison jra at samba.org
Wed Jul 7 15:55:40 MDT 2010


On Mon, Jul 05, 2010 at 10:27:56AM +0200, masetto wrote:
> Good Morning,
> 
> let me explain the problem:
> 
> i need to establish a connection with a Windows host (Windows 7) via
> smbclient (from ubuntu linux), to run a script which needs to get some file
> informations (eg. size, version, etc..). Connection and authentication works
> perfectly. From linux, i can execute the following command:
> 
> smb: \> allinfo test.txt
> altname: test.txt
> create_time:    Thu 01 Jul 2010 11:06:30 AM CEST CEST
> access_time:    Thu 01 Jul 2010 11:06:30 AM CEST CEST
> write_time:     Thu 01 Jul 2010 11:06:30 AM CEST CEST
> change_time:    Thu 01 Jul 2010 12:12:07 PM CEST CEST
> stream: [::$DATA], 0 bytes
> 
> response from Windows: 20 bytes (data_len within cli_qpathinfo_alt_name()
> 
> But, when i try to do the same thing on another file (let's say
> Windows\twain.dll or any other exe or dll) i got:
> 
> smb: \Windows\> allinfo twain.dll
> ERRSRV - ERRerror (Non-specific error code.) getting alt name for
> \Windows\twain.dll
> 
> response from Windows: 0 bytes (?)
> 
> Wireshark say:
> SMB - Trans2 Request, QUERY_PATH_INFO, Query File Alt Name Info,
> Path:\Windows\twain.dll
> SMB - Trans2 Response, QUERY_PATH_INFO, Error: STATUS_OBJECT_NAME_NOT_FOUND
> (0xc0000034)
> 
> However, for the same file, the GET command works without any problem. It
> looks like i've an issue on Windows :/

What version of Samba ? I can't reproduce this with
current master.

Jeremy.


More information about the samba mailing list