[Cmake-commits] [cmake-commits] king committed cmFileCommand.cxx 1.142 1.143 cmWriteFileCommand.cxx 1.18 1.19

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jan 12 11:57:03 EST 2010


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv7757/Source

Modified Files:
	cmFileCommand.cxx cmWriteFileCommand.cxx 
Log Message:
Trust umask for file permissions

Open output files with mode 0666 so that permissions are not more strict
than umask permits.  See issue #10126.


Index: cmWriteFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmWriteFileCommand.cxx,v
retrieving revision 1.18
retrieving revision 1.19
diff -C 2 -d -r1.18 -r1.19
*** cmWriteFileCommand.cxx	28 Sep 2009 15:42:49 -0000	1.18
--- cmWriteFileCommand.cxx	12 Jan 2010 16:56:59 -0000	1.19
***************
*** 61,67 ****
      S_IRUSR | S_IWUSR
  #else
!     S_IRUSR | S_IWUSR |
!     S_IRGRP |
!     S_IROTH
  #endif
      ;
--- 61,65 ----
      S_IRUSR | S_IWUSR
  #else
!     0666
  #endif
      ;
***************
*** 74,78 ****
        S_IREAD | S_IWRITE
  #else
!       S_IRUSR | S_IWUSR
  #endif
      );
--- 72,76 ----
        S_IREAD | S_IWRITE
  #else
!       0666
  #endif
      );

Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.142
retrieving revision 1.143
diff -C 2 -d -r1.142 -r1.143
*** cmFileCommand.cxx	22 Oct 2009 13:44:58 -0000	1.142
--- cmFileCommand.cxx	12 Jan 2010 16:56:57 -0000	1.143
***************
*** 190,196 ****
      S_IRUSR | S_IWUSR
  #else
!     S_IRUSR | S_IWUSR |
!     S_IRGRP |
!     S_IROTH
  #endif
      ;
--- 190,194 ----
      S_IRUSR | S_IWUSR
  #else
!     0666
  #endif
      ;
***************
*** 203,207 ****
        S_IREAD | S_IWRITE
  #else
!       S_IRUSR | S_IWUSR
  #endif
      );
--- 201,205 ----
        S_IREAD | S_IWRITE
  #else
!       0666
  #endif
      );



More information about the Cmake-commits mailing list