diff --git a/usr.sbin/ctm/ctm/ctm.c b/usr.sbin/ctm/ctm/ctm.c index eb7d5f42456a..5f16249f70be 100644 --- a/usr.sbin/ctm/ctm/ctm.c +++ b/usr.sbin/ctm/ctm/ctm.c @@ -238,7 +238,7 @@ Proc(char *filename, unsigned applied) return Exit_Broke; } if ((fd = mkstemp(fn)) == -1 || (f2 = fdopen(fd, "w+")) == NULL) { - perror(fn); + warn("%s", fn); free(fn); if (fd != -1) close(fd);