summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-02 16:19:28 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-02 16:46:59 -0700
commitf3bd32bae2c902b9dbbe241884feaf2f0a4df7fa (patch)
treec36373203c13b96761346decffc06528c09e7cb0 /src
parent59daf05b75f1898ff435ff13983da8d20d4436aa (diff)
downloadcoreutils-f3bd32bae2c902b9dbbe241884feaf2f0a4df7fa.tar.xz
sort: fix exit-status typo
* src/sort.c (stream_open): EXIT_FAILURE -> SORT_FAILURE. Suggested by Pádraig Brady in <http://bugs.gnu.org/11816#34>.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index f0d32c3ff..10103e962 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -927,7 +927,7 @@ stream_open (char const *file, char const *how)
else if (*how == 'w')
{
if (file && ftruncate (STDOUT_FILENO, 0) != 0)
- error (EXIT_FAILURE, errno, _("%s: error truncating"),
+ error (SORT_FAILURE, errno, _("%s: error truncating"),
quote (file));
fp = stdout;
}