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

Aaron LI aly at crater.dragonflybsd.org
Fri Sep 25 21:23:39 PDT 2026


commit b47adf86e5ae8935c8ae087ebdfcadffe4af3ac4
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/b47adf86e5ae8935c8ae087ebdfcadffe4af3ac4


-- 
DragonFly BSD source repository


More information about the Commits mailing list