[Cmake-commits] [cmake-commits] king committed ProcessUNIX.c 1.92 1.93

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


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

Modified Files:
	ProcessUNIX.c 
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: ProcessUNIX.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/ProcessUNIX.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -C 2 -d -r1.92 -r1.93
*** ProcessUNIX.c	1 Dec 2009 13:37:14 -0000	1.92
--- ProcessUNIX.c	12 Jan 2010 16:57:01 -0000	1.93
***************
*** 1876,1882 ****
    kwsysProcessCleanupDescriptor(p);
  
!   /* Open a file for the pipe to write (permissions 644).  */
!   if((fout = open(name, O_WRONLY | O_CREAT | O_TRUNC,
!                   S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0)
      {
      return 0;
--- 1876,1881 ----
    kwsysProcessCleanupDescriptor(p);
  
!   /* Open a file for the pipe to write.  */
!   if((fout = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0)
      {
      return 0;



More information about the Cmake-commits mailing list