Explorar el Código

* Simply last checking

Bryan Drewery hace 16 años
padre
commit
b4daf4e9e9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/shell.c

+ 1 - 1
src/shell.c

@@ -162,7 +162,7 @@ void check_last() {
     char *out = NULL, buf[50] = "";
 
     simple_snprintf(buf, sizeof(buf), STR("last -10 %s"), conf.username);
-    if (shell_exec(buf, NULL, &out, NULL)) {
+    if (shell_exec(buf, NULL, &out, NULL, 1)) {
       if (out) {
         char *p = NULL;