[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [Bug 15481] /bin/sh does not work when invoked with argv[0] different from "sh"
From:       bugzilla () busybox ! net
Date:       2023-03-22 20:03:45
Message-ID: bug-15481-161-rwiQxtU9fB () https ! bugs ! busybox ! net/
[Download RAW message or body]

https://bugs.busybox.net/show_bug.cgi?id=15481

--- Comment #1 from Eric Blake <eblake@redhat.com> ---
In parallel, I've opened https://www.austingroupbugs.net/view.php?id=1645;
maybe POSIX will be relaxed to allow libc implementations to fall back to
execl("/bin/sh", "sh", "-c", ". quoted_file", argv[0], argv[1], ..., NULL) or
execl("/bin/sh", "sh", "-c", "exec -a \"$0\" quoted_file \"$@\"", argv[0],
argv[1], ..., NULL), at which point busybox can still depend on argv[0] ending
in "sh" while passing the correct $0 to the shell script.  Let's see what the
libc and POSIX folks say...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic