From: Pádraig Brady
Date: Wed, 5 Apr 2017 23:18:11 +0000 (-0700)
Subject: maint: fix syntax-check issues in previous tty commit
X-Git-Tag: v8.28~91
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c622e11f47a03143ebeeb93a2b7e8189c440499;p=thirdparty%2Fcoreutils.git
maint: fix syntax-check issues in previous tty commit
* src/tty.c: Avoid EXIT_FAILURE to be more descriptive
and to placate sc_some_programs_must_avoid_exit_failure.
---
diff --git a/src/tty.c b/src/tty.c
index e908e7ec11..e84c35367e 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -16,8 +16,8 @@
/* Displays "not a tty" if stdin is not a terminal.
Displays nothing if -s option is given.
- Exit status 0 if stdin is a tty, 1 if not, 2 if usage error,
- 3 if write error.
+ Exit status 0 if stdin is a tty, 1 if not a tty, 2 if usage error,
+ 3 if write error, 4 for other stdin errors.
Written by David MacKenzie