diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-01-13 19:10:25 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-01-13 19:10:25 +0200 |
commit | 3ffd5d81a43210c8da56da5c5b3637d3f8bc63c7 (patch) | |
tree | b6322fb646dab29760b5631df6d8ff10ca829f46 /src/xz/util.c | |
parent | Don't compress or decompress special files unless writing (diff) | |
download | xz-3ffd5d81a43210c8da56da5c5b3637d3f8bc63c7.tar.xz |
Don't read compressed data from a terminal or write it
to a terminal even if --force is specified.
It just seems more reasonable this way.
The new behavior matches bzip2. The old one matched gzip.
Diffstat (limited to 'src/xz/util.c')
-rw-r--r-- | src/xz/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xz/util.c b/src/xz/util.c index 9f6bdddd..c0ac5384 100644 --- a/src/xz/util.c +++ b/src/xz/util.c @@ -223,8 +223,8 @@ is_tty_stdin(void) const bool ret = isatty(STDIN_FILENO); if (ret) - message_error(_("Compressed data not read from a terminal " - "unless `--force' is used.")); + message_error(_("Compressed data cannot be read from " + "a terminal")); return ret; } @@ -236,8 +236,8 @@ is_tty_stdout(void) const bool ret = isatty(STDOUT_FILENO); if (ret) - message_error(_("Compressed data not written to a terminal " - "unless `--force' is used.")); + message_error(_("Compressed data cannot be written to " + "a terminal")); return ret; } |