]> arthur.barton.de Git - bup.git/commit - lib/bup/_helpers.c
helpers: separately determine if stdout and stderr are ttys.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Feb 2011 05:21:45 +0000 (21:21 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Feb 2011 15:11:30 +0000 (07:11 -0800)
commit6f02181e8d333b1e7e81ebb56d23923cf7e4227c
treec51690f4f1315145c5b4f8efe04e6e83c1a106bf
parent35d4a6a5272c995545df1d6210129d7389505ba0
helpers: separately determine if stdout and stderr are ttys.

Previously we only cared if stderr was a tty (since we use that to determine
if we should print progress() or not).  But we might want to check stdout as
well, for the same reason that gzip does: we should be refusing to write
binary data to a terminal.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/fsck-cmd.py
cmd/save-cmd.py
lib/bup/_helpers.c
lib/bup/helpers.py