소스 검색

Confirm we are in a terminal

master
lostd 10 년 전
부모
커밋
bc11d7b201
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      noice.c

+ 4
- 0
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


불러오는 중...
취소
저장