]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-perms.patch
- display email addresses to whom email was sent when issue was updated
[packages/eventum.git] / eventum-perms.patch
1 diff -ur eventum-20051221/include/class.draft.php eventum-20051221.perms/include/class.draft.php
2 --- eventum-20051221/include/class.draft.php    2005-12-21 17:54:59.000000000 +0200
3 +++ eventum-20051221.perms/include/class.draft.php      2005-12-21 17:54:24.000000000 +0200
4 @@ -46,7 +46,7 @@
5          $fp = @fopen($path . $filename, 'w');
6          @fwrite($fp, $message);
7          @fclose($fp);
8 -        @chmod($path . $filename, 0777);
9 +        @chmod($path . $filename, 0750);
10      }
11  
12  
13 diff -ur eventum-20051221/include/class.misc.php eventum-20051221.perms/include/class.misc.php
14 --- eventum-20051221/include/class.misc.php     2005-12-21 17:55:00.000000000 +0200
15 +++ eventum-20051221.perms/include/class.misc.php       2005-12-21 17:53:59.000000000 +0200
16 @@ -577,7 +577,7 @@
17          if (!is_writable($file)) {
18              if (!stristr(PHP_OS, "win")) {
19                  // let's try to change the permissions ourselves
20 -                @chmod($file, 0777);
21 +                @chmod($file, 0750);
22                  clearstatcache();
23                  if (!is_writable($file)) {
24                      return false;
25 diff -ur eventum-20051221/include/class.note.php eventum-20051221.perms/include/class.note.php
26 --- eventum-20051221/include/class.note.php     2005-12-21 17:55:00.000000000 +0200
27 +++ eventum-20051221.perms/include/class.note.php       2005-12-21 17:54:30.000000000 +0200
28 @@ -261,7 +261,7 @@
29          $fp = @fopen($path . $filename, 'w');
30          @fwrite($fp, $message);
31          @fclose($fp);
32 -        @chmod($path . $filename, 0777);
33 +        @chmod($path . $filename, 0750);
34      }
35  
36  
37 diff -ur eventum-20051221/include/class.support.php eventum-20051221.perms/include/class.support.php
38 --- eventum-20051221/include/class.support.php  2005-12-21 17:55:00.000000000 +0200
39 +++ eventum-20051221.perms/include/class.support.php    2005-12-21 17:49:55.000000000 +0200
40 @@ -264,7 +264,6 @@
41          $fp = @fopen($path . $filename, 'w');
42          @fwrite($fp, $message);
43          @fclose($fp);
44 -        @chmod($path . $filename, 0777);
45          return $filename;
46      }
47  
48 diff -ur eventum-20051221/include/jpgraph/jpgraph.php eventum-20051221.perms/include/jpgraph/jpgraph.php
49 --- eventum-20051221/include/jpgraph/jpgraph.php        2005-12-21 17:54:59.000000000 +0200
50 +++ eventum-20051221.perms/include/jpgraph/jpgraph.php  2005-12-21 17:53:53.000000000 +0200
51 @@ -4086,7 +4086,7 @@
52             $aFile = dirname($aFile);
53         }
54         for ($i = sizeof($dirs)-1; $i>=0; $i--) {
55 -           if(! @mkdir($dirs[$i],0777) )
56 +           if(! @mkdir($dirs[$i],0750) )
57                 JpGraphError::Raise("<b>JpGraph Error:</b> Can't create directory in $aFile. Permission problems?");
58                                 
59             // We also specify mode here after we have changed group. 
60 @@ -4096,7 +4096,7 @@
61             if( CACHE_FILE_GROUP != "" ) {
62                 $res=true;
63                 $res =@chgrp($dirs[$i],CACHE_FILE_GROUP);
64 -               $res &= @chmod($dirs[$i],0777);
65 +               $res &= @chmod($dirs[$i],0750);
66                 if( !$res )
67                     JpGraphError::Raise("<b>JpGraph Error:</b> Can't set permissions for $aFile. Permission problems?");
68             }
69 diff -ur eventum-20051221/setup/index.php eventum-20051221.perms/setup/index.php
70 --- eventum-20051221/setup/index.php    2005-12-21 17:55:00.000000000 +0200
71 +++ eventum-20051221.perms/setup/index.php      2005-12-21 17:53:18.000000000 +0200
72 @@ -68,7 +68,7 @@
73      if (!is_writable($file)) {
74          if (!stristr(PHP_OS, "win")) {
75              // let's try to change the permissions ourselves
76 -            @chmod($file, 0777);
77 +            @chmod($file, 0750);
78              clearstatcache();
79              if (!is_writable($file)) {
80                  return "$desc is not writable";
This page took 0.065955 seconds and 3 git commands to generate.