Explorar el Código

Don't fail Linux sandboxing if /usr/sbin/sendmail does not exist.

default hace 2 meses
padre
commit
51f3f49ba0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      sandbox.c

+ 1 - 1
sandbox.c

@@ -94,7 +94,7 @@ LL_BEGIN(sbox_enter_linux_, const char* basedir, const char *address, int smail)
         LL_PATH(sdir, s);
     }
 
-    if (smail)
+    if (smail && mtime("/usr/sbin/sendmail") > 0)
         LL_PATH("/usr/sbin/sendmail", x);
 
     if (*address != '/') {