git: libc: Fix environment passing in posix_spawnp(3)

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Jan 2 22:32:21 PST 2022


commit 8202da125af7f265528f7844bdc98d544a320bd1
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Mon Jan 3 06:18:15 2022 +0000

    libc: Fix environment passing in posix_spawnp(3)
    
     The execvPe() was always passing the parent process environment to
     children (a long standing bug).
    
     While there, replace the deprecated index(3) with strchr(3).
    
    Reported-by: falsifian (breakage in hs-git-annex)

Summary of changes:
 lib/libc/gen/exec.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8202da125af7f265528f7844bdc98d544a320bd1


-- 
DragonFly BSD source repository



More information about the Commits mailing list