diff options
author | Jeremy Allison <jra@samba.org> | 2019-09-11 14:37:31 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-09-26 17:20:44 +0000 |
commit | c58692cee919259edc4b95009925d516384bbc6a (patch) | |
tree | 6e7a447cb54a7a015e3a53c0f31e938d34b528d4 /source3/include/vfs_macros.h | |
parent | 24f04c1cc561d9f4b7fada1ca87f52bed2167f8d (diff) | |
download | samba-c58692cee919259edc4b95009925d516384bbc6a.tar.gz |
s3: VFS: Add SMB_VFS_UNLINKAT().
Currently identical to SMB_VFS_UNLINK().
Next, add to all VFS modules that implement
unlink and eventually remove unlink.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/include/vfs_macros.h')
-rw-r--r-- | source3/include/vfs_macros.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index 6d95d840e25..055555a4b07 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -226,6 +226,11 @@ #define SMB_VFS_NEXT_UNLINK(handle, path) \ smb_vfs_call_unlink((handle)->next, (path)) +#define SMB_VFS_UNLINKAT(conn, dirfsp, path, flags) \ + smb_vfs_call_unlinkat((conn)->vfs_handles, (dirfsp), (path), (flags)) +#define SMB_VFS_NEXT_UNLINKAT(handle, dirfsp, path, flags) \ + smb_vfs_call_unlinkat((handle)->next, (dirfsp), (path), (flags)) + #define SMB_VFS_CHMOD(conn, smb_fname, mode) \ smb_vfs_call_chmod((conn)->vfs_handles, (smb_fname), (mode)) #define SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode) \ |