diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-06 18:10:49 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-06 18:10:49 +0000 |
commit | bf3fc9084a60ef742ac2395789ef52b20e4b2185 (patch) | |
tree | 777cbf456d6d221bcd086776926c2b03c19d88e7 /src/shutdown | |
parent | 9ad1dbc28c2d8b07c86555a15ba1228235b3a9a5 (diff) | |
download | s6-linux-init-bf3fc9084a60ef742ac2395789ef52b20e4b2185.tar.xz |
Change error message on !isatty()
Diffstat (limited to 'src/shutdown')
-rw-r--r-- | src/shutdown/hpr_confirm_hostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ; |