s3:modules: VFS CAP symlinkat always fails
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 7 Jan 2022 12:55:38 +0000 (13:55 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 10 Jan 2022 23:31:33 +0000 (23:31 +0000)
commit41ebb7f68c5b21492f503afc4cb341a97654a43d
tree39bd86738ac6236c654da06e3c41de29d1891bac
parent745af26a1a6531b2e906aa7c1c0355cbab658441
s3:modules: VFS CAP symlinkat always fails

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14941

Found by covscan.

Since capnew is initialized by NULL, checking it too early makes the
rest of the function a dead code.

Pair-programmed-with: Andreas Schneider <asn@samba.org>

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_cap.c