diff options
author | Ron Yorston <rmy@pobox.com> | 2021-03-02 11:54:14 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-03-02 11:54:14 +0000 |
commit | 633e3a5eae29c5074ada2655caac74902df1acc0 (patch) | |
tree | 19c71892ffadbedd316f8b01c42240a90a896566 /libbb | |
parent | eecc23b563b9759556f3ccf9a8595e7bb6a2215c (diff) | |
download | busybox-w32-633e3a5eae29c5074ada2655caac74902df1acc0.tar.gz busybox-w32-633e3a5eae29c5074ada2655caac74902df1acc0.tar.bz2 busybox-w32-633e3a5eae29c5074ada2655caac74902df1acc0.zip |
ash: correctly identify applet in getopt() error messages
With the default configuration most applets are run from the shell
via run_noexec_applet_and_exit(). If the applet runs getopt() and
an error is detected the message takes the form:
sh: unknown option -- q
This happens because mingw-w64's implementation of getopt() uses
the global variable __argv[0] as the name of the program.
Avoid the misleading message by setting __argv[0] as appropriate.
Diffstat (limited to 'libbb')
0 files changed, 0 insertions, 0 deletions