diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-15 22:21:48 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-15 16:28:03 +0200 |
commit | cc3bdaaf0a5586e0f840466719f9f8387c5cddd0 (patch) | |
tree | 8400385a881a801f96e4e0cda4adc1966e83eb88 /source3/modules/vfs_posix_eadb.c | |
parent | 898c5e140ddca47eac9e2150fb571d6eac3ed7d2 (diff) | |
download | samba-cc3bdaaf0a5586e0f840466719f9f8387c5cddd0.tar.gz samba-cc3bdaaf0a5586e0f840466719f9f8387c5cddd0.tar.bz2 samba-cc3bdaaf0a5586e0f840466719f9f8387c5cddd0.zip |
s3-vfs: Avoid loops in VFS modules: call _NEXT functions in xattr emulation
We need to call the next module in the stack otherwise we will loop if
the stat call is in turn implemented in terms of extended attribute
lookup.
Andrew Bartlett
Diffstat (limited to 'source3/modules/vfs_posix_eadb.c')
-rw-r--r-- | source3/modules/vfs_posix_eadb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_posix_eadb.c b/source3/modules/vfs_posix_eadb.c index e1b90ffbc6..c8bebc4c0f 100644 --- a/source3/modules/vfs_posix_eadb.c +++ b/source3/modules/vfs_posix_eadb.c @@ -293,9 +293,9 @@ static int posix_eadb_unlink(vfs_handle_struct *handle, } if (lp_posix_pathnames()) { - ret = SMB_VFS_LSTAT(handle->conn, smb_fname_tmp); + ret = SMB_VFS_NEXT_LSTAT(handle, smb_fname_tmp); } else { - ret = SMB_VFS_STAT(handle->conn, smb_fname_tmp); + ret = SMB_VFS_NEXT_STAT(handle, smb_fname_tmp); } if (ret == -1) { goto out; |