diff options
author | Jeremy Allison <jra@samba.org> | 2009-10-16 17:20:40 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-10-16 17:20:40 -0700 |
commit | ea3c077236c8ffcf3d258a2b472c6348f2910638 (patch) | |
tree | f7b47302a106b41bdc4396ebe1af44d611b6a5f0 /source3/modules/vfs_hpuxacl.c | |
parent | 010dfbf1fd26718ad197e3428ed0b03111f6c9e5 (diff) | |
download | samba-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_hpuxacl.c')
-rw-r--r-- | source3/modules/vfs_hpuxacl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c index df70f1ea08..5a54f79da3 100644 --- a/source3/modules/vfs_hpuxacl.c +++ b/source3/modules/vfs_hpuxacl.c @@ -255,7 +255,12 @@ int hpuxacl_sys_acl_set_file(vfs_handle_struct *handle, * that has _not_ been specified in "type" from the file first * and concatenate it with the acl provided. */ - if (SMB_VFS_STAT(handle->conn, smb_fname) != 0) { + if (lp_posix_pathnames()) { + ret = SMB_VFS_LSTAT(handle->conn, smb_fname); + } else { + ret = SMB_VFS_STAT(handle->conn, smb_fname); + } + if (ret != 0) { DEBUG(10, ("Error in stat call: %s\n", strerror(errno))); goto done; } |