https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c2
Divesh Uppoor
Thanks for the report Divesh.
Do you know whether this is also the case in Samba 3.6.3, as shipped with SLES 11 SP2?
SMB Traffic Analyzer uses the same method to obtain the filename on close: 889 static int smb_traffic_analyzer_close(vfs_handle_struct *handle, \ 890 files_struct *fsp) 891 { 892 struct close_data s_data; 893 s_data.result = SMB_VFS_NEXT_CLOSE(handle, fsp); 894 DEBUG(10,("smb_traffic_analyzer_close: CLOSE: %s\n", 895 fsp_str_dbg(fsp))); 896 s_data.filename = fsp->fsp_name->base_name; 897 smb_traffic_analyzer_send_data(handle, 898 &s_data, 899 vfs_id_close); 900 return s_data.result; 901 }
@Holger have you run into this problem?
As a (very ugly) workaround for now you may wish to use readlink(), feeding it a /proc/self/fd/$FD path where $FD = fsp->fh->fd.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.