Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r88380:0e2797574d3d
Date: 2016-11-15 08:53 +0100
http://bitbucket.org/pypy/pypy/changeset/0e2797574d3d/

Log:    Don't create log files that have the executable bit set

diff --git a/rpython/rlib/rjitlog/src/rjitlog.c 
b/rpython/rlib/rjitlog/src/rjitlog.c
--- a/rpython/rlib/rjitlog/src/rjitlog.c
+++ b/rpython/rlib/rjitlog/src/rjitlog.c
@@ -45,11 +45,11 @@
     filename = getenv("JITLOG");
 
     if (filename && filename[0]) {
-        // mode is 775
+        // mode is 644
 #ifdef _WIN32
-        int mode = _S_IWRITE | _S_IREAD | _S_IEXEC;
+        int mode = _S_IWRITE | _S_IREAD;
 #else        
-        mode_t mode = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH;
+        mode_t mode = 0644;
 #endif
         jitlog_fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, mode);
         if (jitlog_fd == -1) {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to