util-linux/misc-utils
Đoàn Trần Công Danh 27fd7278a1 getopt: explicitly ask for POSIX mode on POSIXLY_CORRECT
GNU libc's getopt_long(3) have the tradition of not shuffling arguments
to find options when either POSIXLY_CORRECT is defined in environment
variables or '+' prepended in short options. Hence, the current code
base is fine as is fine as is for util-linux built with GNU libc.

However, musl libc only honour POSIX convention when short options
prepended with '+'. musl libc doesn't care about POSIXLY_CORRECT.
Thus, the behaviour of util-linux's getopt(1) that linked with musl-libc
doesn't match with its own documentation.

Let's make sure a '+' is always prepended to short options if
POSIXLY_CORRECT is defined.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
2021-01-06 20:57:57 +07:00
..
.gitignore getopt: use examples installation directory in man page 2020-02-15 15:24:01 +00:00
Makemodule.am getopt: explicitly ask for POSIX mode on POSIXLY_CORRECT 2021-01-06 20:57:57 +07:00
blkid.8 man: make tilde and caret characters to render correctly 2020-11-14 15:22:34 +00:00
blkid.c blkid: add another UDF identifiers 2020-12-11 10:02:22 +01:00
cal.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
cal.c cal: do not use putp(), directly use stdio functions 2020-10-21 10:19:26 +02:00
fincore.1 docs: (man) remove double quotes (") in .SH lines 2020-05-19 12:15:34 +02:00
fincore.c cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
findfs.8 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
findfs.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
findmnt-verify.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
findmnt.8 libsmartcols: sanitize variable names on export output 2020-12-03 12:14:10 +01:00
findmnt.c [clang-tidy] fix wrong *cmp usage 2020-04-20 13:21:00 -07:00
findmnt.h misc-tools/findmnt: add --pseudo, --real filters 2018-05-10 11:58:30 -05:00
getopt-example.bash docs: rename to getopt-example 2020-11-03 15:23:03 +01:00
getopt-example.tcsh docs: rename to getopt-example 2020-11-03 15:23:03 +01:00
getopt.1.in getopt: explicitly ask for POSIX mode on POSIXLY_CORRECT 2021-01-06 20:57:57 +07:00
getopt.c getopt: explicitly ask for POSIX mode on POSIXLY_CORRECT 2021-01-06 20:57:57 +07:00
hardlink.1 man: make tilde and caret characters to render correctly 2020-11-14 15:22:34 +00:00
hardlink.c hardlink: fix hardlink pcre leak 2020-10-16 11:25:11 +02:00
kill.1 doc: Fix some warnings from "test-groff" for manuals 2020-06-10 10:22:58 +02:00
kill.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
logger.1 Manual pages: logger.1: minor formatting and typo fixes 2020-07-24 14:41:49 +02:00
logger.c various: fix more lgtm scan warnings 2020-02-20 20:18:46 +00:00
look.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
look.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
lsblk-devtree.c lsblk: add dependence between CD/DVD block and packet devices 2020-11-24 10:44:46 +01:00
lsblk-mnt.c lsblk: rename blkdev_cxt to lsblk_device 2018-12-07 12:32:57 +01:00
lsblk-properties.c lsblk: read SCSI_IDENT_SERIAL also from udev 2020-12-14 11:38:04 +01:00
lsblk.8 libsmartcols: sanitize variable names on export output 2020-12-03 12:14:10 +01:00
lsblk.c lsblk: add dependence between CD/DVD block and packet devices 2020-11-24 10:44:46 +01:00
lsblk.h lsblk: add dependence between CD/DVD block and packet devices 2020-11-24 10:44:46 +01:00
lslocks.8 docs: (man) remove double quotes (") in .SH lines 2020-05-19 12:15:34 +02:00
lslocks.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
mcookie.1 Manual pages: order NOTES / HISTORY / BUGS / EXAMPLE consistently 2020-05-22 10:25:50 +02:00
mcookie.c lib/randutils: rename random_get_bytes() 2020-11-03 12:38:45 +01:00
namei.1 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently 2020-05-22 10:25:49 +02:00
namei.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
rename.1 doc: misc-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
rename.c rename: fix regression for symlink with non-existing target 2020-07-07 16:19:15 -03:00
test_uuidd.c libuuid: (test) cleanup unused memory [coverity scan] 2020-07-14 11:56:15 +02:00
uuidd.8.in Subject: docs: change from nofill to fill mode 2020-07-14 10:37:47 +02:00
uuidd.c uuidd: fix misleading indentation 2020-11-23 22:48:08 +00:00
uuidd.rc.in build: use --runstatedir instead of --localstatedir 2017-07-31 15:24:46 +02:00
uuidd.service.in uuidd: Add hardening settings to uuidd.service 2018-11-29 10:37:08 +01:00
uuidd.socket.in build: use --runstatedir instead of --localstatedir 2017-07-31 15:24:46 +02:00
uuidgen.1 misc: fix typos 2020-11-04 11:42:28 +00:00
uuidgen.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
uuidparse.1 manpages: fix "The example command" in AVAILABILITY section 2020-07-24 09:09:43 +02:00
uuidparse.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
whereis.1 whereis: do not strip suffixes 2020-11-04 11:43:09 +00:00
whereis.c whereis: filter bin, man and src differently 2020-11-04 11:43:09 +00:00
wipefs.8 man: make tilde and caret characters to render correctly 2020-11-14 15:22:34 +00:00
wipefs.c wipefs: add --lock and LOCK_BLOCK_DEVICE 2020-05-27 17:00:08 +02:00