git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c38c99a
)
Fix bug #6769 - symlink unlink does nothing.
author
Jeremy Allison
<jra@samba.org>
Thu, 1 Oct 2009 23:54:06 +0000
(16:54 -0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 1 Oct 2009 23:54:06 +0000
(16:54 -0700)
Always use LSTAT for POSIX pathnames.
Jeremy.
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index c92bc8ec21a0e3360a291917a66700b54d43c1fc..680eb1205b430cd3724c0e303b977dc39383b117 100644
(file)
--- a/
source3/modules/vfs_default.c
+++ b/
source3/modules/vfs_default.c
@@
-1231,7
+1231,11
@@
static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle,
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- ret = SMB_VFS_STAT(handle->conn, smb_fname);
+ if (lp_posix_pathnames()) {
+ ret = SMB_VFS_LSTAT(handle->conn, smb_fname);
+ } else {
+ ret = SMB_VFS_STAT(handle->conn, smb_fname);
+ }
sbuf = smb_fname->st;
TALLOC_FREE(smb_fname);
}