git: DragonFly_RELEASE_6_4 cpdup: Don't pass an uninitialized pointer to getgroups(0, ...).

Aaron LI aly at crater.dragonflybsd.org
Fri Sep 25 21:24:53 PDT 2026


commit 961f58e6d49dc52668c1cc9e0f5a3804e0d3bba1
Author: David Bidner <david at crap.solutions>
Date:   Sat Sep 26 04:57:09 2026 +0200

    cpdup: Don't pass an uninitialized pointer to getgroups(0, ...).
    
    getmygroups() passed *gidlist to the size-only getgroups() query
    before it was initialized. The list argument is ignored when the
    size is 0, so pass NULL instead.
    
    Bug: #3425

Summary of changes:
 bin/cpdup/hcproto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/961f58e6d49dc52668c1cc9e0f5a3804e0d3bba1


-- 
DragonFly BSD source repository


More information about the Commits mailing list