summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_afsacl.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-16 17:20:40 -0700
committerJeremy Allison <jra@samba.org>2009-10-16 17:20:40 -0700
commitea3c077236c8ffcf3d258a2b472c6348f2910638 (patch)
treef7b47302a106b41bdc4396ebe1af44d611b6a5f0 /source3/modules/vfs_afsacl.c
parent010dfbf1fd26718ad197e3428ed0b03111f6c9e5 (diff)
downloadsamba-ea3c077236c8ffcf3d258a2b472c6348f2910638.tar.gz
samba-ea3c077236c8ffcf3d258a2b472c6348f2910638.tar.bz2
samba-ea3c077236c8ffcf3d258a2b472c6348f2910638.zip
Last 2 VFS_STAT -> LSTAT fixes I can see in the modules code.
Jeremy.
Diffstat (limited to 'source3/modules/vfs_afsacl.c')
-rw-r--r--source3/modules/vfs_afsacl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index 1c310c7185..4666be2aa3 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -659,8 +659,15 @@ static size_t afs_to_nt_acl(struct afs_acl *afs_acl,
uint32 security_info,
struct security_descriptor **ppdesc)
{
+ int ret;
+
/* Get the stat struct for the owner info. */
- if(SMB_VFS_STAT(conn, smb_fname) != 0) {
+ if (lp_posix_pathnames()) {
+ ret = SMB_VFS_LSTAT(conn, smb_fname);
+ } else {
+ ret = SMB_VFS_STAT(conn, smb_fname);
+ }
+ if (ret == -1) {
return 0;
}