Explorar el Código

Confirm we are in a terminal

master
lostd hace 10 años
padre
commit
bc11d7b201
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      noice.c

+ 4
- 0
noice.c Ver fichero

@@ -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


Cargando…
Cancelar
Guardar