diff --git a/ProcessUNIX.c b/ProcessUNIX.c
index 79716a1842895b7c59989f6091ac7ca90e710170..373e9067db73fb1d6dcdca3ffcff317ec163076c 100644
--- a/ProcessUNIX.c
+++ b/ProcessUNIX.c
@@ -1875,9 +1875,8 @@ static int kwsysProcessSetupOutputPipeFile(int* p, const char* name)
   /* Close the existing descriptor.  */
   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)
+  /* Open a file for the pipe to write.  */
+  if((fout = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0)
     {
     return 0;
     }
diff --git a/kwsysDateStamp.cmake b/kwsysDateStamp.cmake
index f31719056435eaafd57518facdac33693b776952..22351cbb1ee00678a1c6c7336f1fa2f87a8c3b69 100644
--- a/kwsysDateStamp.cmake
+++ b/kwsysDateStamp.cmake
@@ -18,4 +18,4 @@ SET(KWSYS_DATE_STAMP_YEAR  2010)
 SET(KWSYS_DATE_STAMP_MONTH 01)
 
 # KWSys version date day component.  Format is DD.
-SET(KWSYS_DATE_STAMP_DAY   06)
+SET(KWSYS_DATE_STAMP_DAY   12)