mktemp: with --quiet, only suppress I/O errors
commit0c1d7917f19b4865544ab9f1b13dfcdfd4e65275
authorPádraig Brady <P@draigBrady.com>
Sun, 6 Oct 2013 16:26:51 +0000 (6 17:26 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 6 Oct 2013 16:59:44 +0000 (6 17:59 +0100)
treedd83d3ea254ca12948e4ce248676f76e3bef8934
parent8e67c2dec1a595619d540bc3e52c2dfcf61a63a3
mktemp: with --quiet, only suppress I/O errors

The reason for having a --quiet option is to
suppress only some subset of possible errors.
The most useful separation here is with usage/internal errors,
and errors due to file creation etc. (i.e. I/O errors).

* src/mktemp.c (main): Match the --help and info docs and
only suppress the file/dir creation error messages.
* tests/misc/mktemp.pl: Adjust accordingly.
src/mktemp.c
tests/misc/mktemp.pl