aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/lsb/mktemp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/lsb/mktemp.c b/toys/lsb/mktemp.c
index 440cf6b1..ae97e494 100644
--- a/toys/lsb/mktemp.c
+++ b/toys/lsb/mktemp.c
@@ -48,8 +48,7 @@ void mktemp_main(void)
? xstrdup(template) : xmprintf("%s/%s", TT.p, template);
if (toys.optflags & FLAG_u) {
- mktemp(template);
- xputs(template);
+ xputs(mktemp(template));
} else if (toys.optflags & FLAG_d ? !mkdtemp(template) : mkstemp(template) == -1) {
if (toys.optflags & FLAG_q) toys.exitval = 1;
else perror_exit("Failed to create %s %s/%s",