diff options
author | Jeremy Allison <jra@samba.org> | 2009-02-25 13:46:21 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-02-25 13:46:21 -0800 |
commit | 76ca297ecfd1086b38487ac8f53a8392a4a38ad6 (patch) | |
tree | 635f8a3b8c837ae9a980993b07dae71df58b2896 /source3/modules/vfs_streams_depot.c | |
parent | a4e570e3cedf284ee83853415176e4dcccc105cb (diff) | |
download | samba-76ca297ecfd1086b38487ac8f53a8392a4a38ad6.tar.gz samba-76ca297ecfd1086b38487ac8f53a8392a4a38ad6.tar.bz2 samba-76ca297ecfd1086b38487ac8f53a8392a4a38ad6.zip |
Fix use of streams modules with CIFSFS client.
Jeremy.
Diffstat (limited to 'source3/modules/vfs_streams_depot.c')
-rw-r--r-- | source3/modules/vfs_streams_depot.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 9329be7a9c..023d2b9ec0 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -494,7 +494,13 @@ static int streams_depot_unlink(vfs_handle_struct *handle, const char *fname) * We potentially need to delete the per-inode streams directory */ - if (SMB_VFS_NEXT_STAT(handle, fname, &sbuf) == -1) { + if (lp_posix_pathnames()) { + ret = SMB_VFS_NEXT_LSTAT(handle, fname, &sbuf); + } else { + ret = SMB_VFS_NEXT_STAT(handle, fname, &sbuf); + } + + if (ret == -1) { return -1; } @@ -678,7 +684,11 @@ static NTSTATUS streams_depot_streaminfo(vfs_handle_struct *handle, if (is_ntfs_stream_name(fname)) { return NT_STATUS_INVALID_PARAMETER; } - ret = SMB_VFS_NEXT_STAT(handle, fname, &sbuf); + if (lp_posix_pathnames()) { + ret = SMB_VFS_NEXT_LSTAT(handle, fname, &sbuf); + } else { + ret = SMB_VFS_NEXT_STAT(handle, fname, &sbuf); + } } if (ret == -1) { |