symlink failure when listing a dircetory in samba 3.0.25
Gerald (Jerry) Carter
jerry at samba.org
Fri May 11 15:40:08 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeremy,
Is this a change in behavior ?
* create a symlink in a share to a directory that
has permissions that would deny a given user to
stat the link target
* smbd removes the link from the list of files
in the output to smbclient and Windows 2003
get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO
get_lanman2_dir_entry:readdir on dirptr 0x8558a30 now at offset
-2147483648
dos_mode: ./..
dos_mode_from_sbuf returning d
dos_mode returning d
get_lanman2_dir_entry found ./.. fname=..
get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO
get_lanman2_dir_entry:readdir on dirptr 0x8558a30 now at offset 56
get_lanman2_dir_entry:Couldn't stat [./lwi-builds] (Permission denied)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
get_lanman2_dir_entry:readdir on dirptr 0x8558a30 now at offset 72
dos_mode: ./winadmin
dos_mode_from_sbuf returning d
dos_mode returning d
get_lanman2_dir_entry found ./winadmin fname=winadmin
get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO
get_lanman2_dir_entry:readdir on dirptr 0x8558a30 now at offset 4096
It seems to be that we should display the link anyways.
Hide unreadable is not set.
cheers, jerry
=====================================================================
Samba ------- http://www.samba.org
Centeris ----------- http://www.centeris.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGRI5YIR7qMdg1EfYRAl9LAKDIpfrPMX1h53ARm3cND8UrrZ+4gACeIgdr
PxyvBMnMAYevJTHL3sz3kIY=
=Vbh5
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list