noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit bc11d7b201fcb81f5457d5e3916512126649f6cf
parent 97cfd82eedfc5173736c6780e8efcdc335054a8b
Author: lostd <lostd@2f30.org>
Date:   Thu, 12 Mar 2015 14:57:34 +0200

Confirm we are in a terminal

Diffstat:
Mnoice.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/noice.c b/noice.c @@ -835,6 +835,10 @@ main(int argc, char *argv[]) char cwd[PATH_MAX], *ipath; char *ifilter; + /* Confirm we are in a terminal */ + if (!isatty(STDIN_FILENO)) + printerr(1, "isatty"); + if (getuid() == 0) ifilter = "."; else