[PATCH]: winbind handling NULL sids (bug #13914)

Ralph Boehme slow at samba.org
Mon May 27 14:08:12 UTC 2019


On Mon, May 27, 2019 at 05:05:54PM +0530, Amit Kumar via samba-technical wrote:
>Created patch using following command set:
># git clone https://github.com/samba-team/samba
># cd samba
>Done changes
># # git checkout -b null-sid
>M    source3/winbindd/winbindd_rpc.c
>Switched to a new branch 'null-sid'
># git add source3/winbindd/winbindd_rpc.c
># git commit -m "winbind null sid handling"
># git format-patch -1 HEAD
>0001-winbind-null-sid-handling.patch

hm, still fail:

slow at inti:autobuild ▸ git log --oneline -1 HEAD
412afb2aef1 (HEAD -> ab, origin/master, gitlab/master) Fix ubsan null pointer passed as argument 2

slow at inti:autobuild ▸ git am ~/patches/0001-winbind-null-sid-handling.patch
Applying: winbind null sid handling
error: patch failed: source3/winbindd/winbindd_rpc.c:958
error: source3/winbindd/winbindd_rpc.c: patch does not apply
Patch failed at 0001 winbind null sid handling
hint: Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Can you check?

While at it, can you please add a bit more desciptive text to the commit message 
describing the problem and the fix? Thanks!

Finally please also add your signed-off by once you're happy with the state of 
your patch:

https://wiki.samba.org/index.php/CodeReview#commit_message_tags

Thanks!
-slow

-- 
Ralph Boehme, Samba Team                https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/
GPG-Fingerprint   FAE2C6088A24252051C559E4AA1E9B7126399E46



More information about the samba-technical mailing list