[Bug 220587] /bin/sh Incorrect options handling

[email protected] Tue, 11 Mar 2025 18:24:12 +0000
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220587

--- Comment #21 from Steffen Nurpmeso <[email protected]> ---
(Ie the source code now does, and somehow that has to be done, without too much
configuration hassle, right?  I wonder how many such pitfalls really exist in
the tens of thousands of packages of the FreeBSD port system.) 

void
mx_child_ctx_set_args_for_sh(struct mx_child_ctx *ccp, char const *sh_or_nil,
char const *cmd_string){
        NYD2_IN;

        if(sh_or_nil == NIL)
                sh_or_nil = ok_vlook(SHELL);

        ccp->cc_cmd = sh_or_nil;
        ccp->cc_args[0] = "-c";
        ccp->cc_args[1] = "--";
        ccp->cc_args[2] = cmd_string;

        NYD2_OU;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.