Author: pascalek Date: Thu Oct 18 10:28:53 2007 GMT Module: SOURCES Tag: HEAD ---- Log message: - initial revision
---- Files affected: SOURCES: mars_nwe-truncate.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/mars_nwe-truncate.patch diff -u /dev/null SOURCES/mars_nwe-truncate.patch:1.1 --- /dev/null Thu Oct 18 12:28:53 2007 +++ SOURCES/mars_nwe-truncate.patch Thu Oct 18 12:28:47 2007 @@ -0,0 +1,19 @@ +diff -Nur mars_nwe.orig/namspace.c mars_nwe.chng/namspace.c +--- mars_nwe.orig/namspace.c 2007-10-18 11:52:02.000000000 +0200 ++++ mars_nwe.chng/namspace.c 2007-10-18 12:00:49.000000000 +0200 +@@ -1867,6 +1867,15 @@ + #endif + creatmode = 1; + } ++ ++ /* ++ * 18/10/2007 - pascalek ([EMAIL PROTECTED]): ++ * If file is opened just in truncate mode (at least windows XP Client is ++ * affected) its opencreatemode equals 0x2. Opening it with creatmode == 0 ++ * corrupt files. ++ */ ++ if (opencreatmode == 0x2) ++ creatmode = 1; + + if ((result = file_creat_open(dbe->nwpath.volume, + nwpath_2_unix(&dbe->nwpath, 2), &(dbe->nwpath.statb), ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
