projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e25ed
)
Make "xz --force" to write to terminal as the error
author
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 8 Feb 2009 16:17:05 +0000
(18:17 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 8 Feb 2009 16:17:05 +0000
(18:17 +0200)
message suggests.
src/xz/main.c
patch
|
blob
|
history
diff --git
a/src/xz/main.c
b/src/xz/main.c
index
b683cf9
..
6c21cd2
100644
(file)
--- a/
src/xz/main.c
+++ b/
src/xz/main.c
@@
-197,7
+197,7
@@
main(int argc, char **argv)
// Refuse to write compressed data to standard output if it is
// a terminal and --force wasn't used.
- if (opt_mode == MODE_COMPRESS) {
+ if (opt_mode == MODE_COMPRESS
&& !opt_force
) {
if (opt_stdout || (args.arg_count == 1
&& strcmp(args.arg_names[0], "-") == 0)) {
if (is_tty_stdout()) {