瀏覽代碼

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


Loading…
取消
儲存