SOURCES: likewise-open-chmod.patch (NEW) - open() needs 3 args

duddits duddits at pld-linux.org
Sat Mar 7 20:32:19 CET 2009


Author: duddits                      Date: Sat Mar  7 19:32:19 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- open() needs 3 args

---- Files affected:
SOURCES:
   likewise-open-chmod.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/likewise-open-chmod.patch
diff -u /dev/null SOURCES/likewise-open-chmod.patch:1.1
--- /dev/null	Sat Mar  7 20:32:20 2009
+++ SOURCES/likewise-open-chmod.patch	Sat Mar  7 20:32:14 2009
@@ -0,0 +1,24 @@
+diff -burNp likewise-open-4.0.0-release/domainjoin/libcentutils/ctfileutils.c likewise-open-4.0.0-release-dud/domainjoin/libcentutils/ctfileutils.c
+--- likewise-open-4.0.0-release/domainjoin/libcentutils/ctfileutils.c	2007-11-26 15:02:31.000000000 +0100
++++ likewise-open-4.0.0-release-dud/domainjoin/libcentutils/ctfileutils.c	2009-03-07 16:31:32.084678048 +0100
+@@ -1298,7 +1298,7 @@ CTRunSedOnFile(PCSTR pszSrcPath,
+ 		BAIL_ON_CENTERIS_ERROR(ceError);
+ 	}
+ 
+-	dwFdOut = open(tempPath, O_WRONLY | O_EXCL | O_CREAT);
++	dwFdOut = open(tempPath, O_WRONLY | O_EXCL | O_CREAT, 0666);
+ 	if (dwFdOut < 0) {
+ 		ceError = CTMapSystemError(errno);
+ 		BAIL_ON_CENTERIS_ERROR(ceError);
+diff -burNp likewise-open-4.0.0-release/domainjoin/libdomainjoin/src/djprocutils.c likewise-open-4.0.0-release-dud/domainjoin/libdomainjoin/src/djprocutils.c
+--- likewise-open-4.0.0-release/domainjoin/libdomainjoin/src/djprocutils.c	2007-11-26 15:02:31.000000000 +0100
++++ likewise-open-4.0.0-release-dud/domainjoin/libdomainjoin/src/djprocutils.c	2009-03-07 16:40:47.222330821 +0100
+@@ -252,7 +252,7 @@ DJSpawnProcessOutputToFile(PCSTR pszComm
+ 		BAIL_ON_CENTERIS_ERROR(ceError);
+ 	}
+ 
+-	dwFdOut = open(file, O_CREAT|O_WRONLY);
++	dwFdOut = open(file, O_CREAT|O_WRONLY, 0666);
+ 
+ 	if (dwFdOut < 0) {
+ 		ceError = CTMapSystemError(errno);
================================================================


More information about the pld-cvs-commit mailing list