mktemp: fix mktemp -u temp.XXXXXX returning garbage when TMPDIR is set
authorRon Yorston <rmy@tigress.co.uk>
Mon, 8 Oct 2012 09:47:22 +0000 (11:47 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 Oct 2012 09:47:22 +0000 (11:47 +0200)
commiteab343e7e1e5331df833aa69f14584e4a6c738f1
treeca06fdb10773a4ff8481cb72468849c7b55cf150
parent8dc6d1a813e2be33ecfcf3fa97a1b5aae05a8631
mktemp: fix mktemp -u temp.XXXXXX returning garbage when TMPDIR is set

Use mktemp instead of tempnam for compatibility with real mktemp.
Don't let mktemp fail silently, print some simple error messages.
Don't ignore -q.

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Ron Yorston <rmy@tigress.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
debianutils/mktemp.c