From bf3fc9084a60ef742ac2395789ef52b20e4b2185 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 6 Nov 2020 18:10:49 +0000 Subject: Change error message on !isatty() --- src/shutdown/hpr_confirm_hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shutdown/hpr_confirm_hostname.c b/src/shutdown/hpr_confirm_hostname.c index 00b3de7..040c2f6 100644 --- a/src/shutdown/hpr_confirm_hostname.c +++ b/src/shutdown/hpr_confirm_hostname.c @@ -22,7 +22,7 @@ void hpr_confirm_hostname (void) char *p ; ssize_t r ; if (!isatty(0) || !isatty(1)) - strerr_diefu1sys(100, "ask hostname confirmation") ; + strerr_diefu1x(100, "ask hostname confirmation: stdin or stdout is not a tty") ; if (gethostname(name, HOST_NAME_MAX) < 0) strerr_diefu1sys(111, "get host name") ; name[HOST_NAME_MAX] = 0 ; -- cgit v1.2.3