浏览代码

Fix #323 - umask 077

George S. Baugh 4 月之前
父节点
当前提交
90f9c62370
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/TCMS.pm

+ 3 - 0
lib/TCMS.pm

@@ -68,6 +68,9 @@ If a path passed is not a defined route (or regex route), but exists as a file u
 
 sub _app {
 
+    # Make sure all writes are with the proper permissions, none need know of our love
+    umask 0077;
+
     # Start the server timing clock
     my $start = [gettimeofday];