This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Confirm we are in a terminal
master
lostd
10 years ago
parent
97cfd82eed
commit
bc11d7b201
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
noice.c
+ 4
- 0
noice.c
View File
@@ -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
Write
Preview
Loading…
Cancel
Save