Преглед изворни кода

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

default пре 3 месеци
родитељ
комит
51f3f49ba0
1 измењених фајлова са 1 додато и 1 уклоњено
  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 != '/') {