The Samba-Bugzilla – Attachment 17080 Details for
Bug 14941
symlinkat function from VFS cap module always fails with an error.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.15.next.
bug-14941-4.15 (text/plain), 1.21 KB, created by
Jeremy Allison
on 2022-01-11 18:05:27 UTC
(
hide
)
Description:
git-am fix for 4.15.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2022-01-11 18:05:27 UTC
Size:
1.21 KB
patch
obsolete
>From 3f2a49bb78f9ea3eec2c478909cf22e00233dc54 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= <pfilipen@redhat.com> >Date: Fri, 7 Jan 2022 13:55:38 +0100 >Subject: [PATCH] s3:modules: VFS CAP symlinkat always fails >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >(cherry picked from commit 41ebb7f68c5b21492f503afc4cb341a97654a43d) >--- > source3/modules/vfs_cap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c >index 4a47b26c7b9..43c8edb8932 100644 >--- a/source3/modules/vfs_cap.c >+++ b/source3/modules/vfs_cap.c >@@ -448,7 +448,7 @@ static int cap_symlinkat(vfs_handle_struct *handle, > int saved_errno = 0; > int ret; > >- if (!capold || !capnew) { >+ if (capold == NULL) { > errno = ENOMEM; > return -1; > } >-- >2.30.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
asn
:
review+
Actions:
View
Attachments on
bug 14941
: 17080