From be4ed07d613b2bcffc42da74dc025db77db0abcf Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 2 Jun 2026 18:17:09 -0500 Subject: [PATCH] Show errno from mkstemp. --- lib/xwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xwrap.c b/lib/xwrap.c index 6a910230..fb608d57 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -483,7 +483,7 @@ int xtempfile(char *name, char **tempname) int fd; *tempname = xmprintf("%s%s", name, "XXXXXX"); - if(-1 == (fd = mkstemp(*tempname))) error_exit("no temp file"); + if(-1 == (fd = mkstemp(*tempname))) perror_exit("no temp file"); return fd; } -- 2.39.5