]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: VFS: syncops: Do early returns in SYNCOPS_NEXT_SMB_FNAME() macro.
authorJeremy Allison <jra@samba.org>
Thu, 17 Jun 2021 19:23:46 +0000 (12:23 -0700)
committerNoel Power <npower@samba.org>
Tue, 22 Jun 2021 13:44:34 +0000 (13:44 +0000)
commit5da0d75dd47e2e4e44663fc75b0b7df27b261ee8
treefa940c222c483549315bf0344bca4802ff133aaf
parentfbeefe3b7e66df7212a407f601163d9b5e81480e
s3: VFS: syncops: Do early returns in SYNCOPS_NEXT_SMB_FNAME() macro.

Makes the macro much clearer.

We should always do the operation first, then try the sync.
Failure to sync is not reported as an error, so failure
to create the full_fname shouldn't fail the operation either.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/modules/vfs_syncops.c