]> git.ipfire.org Git - thirdparty/coreutils.git/commit
all: quote string arguments in error messages
authorPádraig Brady <P@draigBrady.com>
Tue, 27 Oct 2015 13:13:59 +0000 (13:13 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 27 Oct 2015 17:24:54 +0000 (17:24 +0000)
commit6796698c9945d87236ffcc939137d0919ef04931
treedd843e7808186887c2959451e34fdd7f42783359
parent106d4bf159a97b573d6479473fa38216fb8bfada
all: quote string arguments in error messages

These strings are often file names or other user specified
parameters, which can give confusing errors in
the presence of unexpected characters for example.

* cfg.mk (sc_error_quotes): A new syntax check rule.
* src/*.c: Wrap error() string arguments with quote().
* tests/: Adjust accordingly.
* NEWS: Mention the improvement.
63 files changed:
NEWS
cfg.mk
src/base64.c
src/cat.c
src/chcon.c
src/chroot.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/date.c
src/dd.c
src/dircolors.c
src/du.c
src/env.c
src/expand.c
src/expr.c
src/fmt.c
src/fold.c
src/groups.c
src/id.c
src/install.c
src/join.c
src/kill.c
src/mknod.c
src/nice.c
src/nl.c
src/od.c
src/operand2sig.c
src/paste.c
src/pathchk.c
src/pinky.c
src/pr.c
src/printf.c
src/ptx.c
src/readlink.c
src/runcon.c
src/seq.c
src/shred.c
src/shuf.c
src/sort.c
src/split.c
src/stty.c
src/sum.c
src/tac.c
src/tail.c
src/tee.c
src/test.c
src/tsort.c
src/unexpand.c
src/uniq.c
src/uptime.c
src/users.c
src/wc.c
src/who.c
tests/du/bigtime.sh
tests/misc/dircolors.pl
tests/misc/printf-cov.pl
tests/misc/printf.sh
tests/misc/readlink-fp-loop.sh
tests/misc/shred-passes.sh
tests/misc/sort.pl
tests/misc/tsort.pl