jcifs-1.1.11 from tgz
authorFelix Schumacher <p0354740@isib001.(none)>
Wed, 6 Aug 2008 14:31:22 +0000 (16:31 +0200)
committerFelix Schumacher <p0354740@isib001.(none)>
Wed, 6 Aug 2008 14:31:22 +0000 (16:31 +0200)
Wed May  4 22:59:32 EDT 2005
jcifs-1.1.11 released

If  a  file  is  opened  with SmbFileOutputStream, written to, and then the
client  waits  for  soTimeout  without  any  communication to the target, a
subsequent  write  would  zero  the  contents  of  the file before the file
pointer. This file corruption bug has been fixed.

README.txt
build.xml
src/jcifs/smb/SmbFileOutputStream.java

index dc3683f..e4435f7 100644 (file)
@@ -1,3 +1,11 @@
+Wed May  4 22:59:32 EDT 2005
+jcifs-1.1.11 released
+
+If  a  file  is  opened  with SmbFileOutputStream, written to, and then the
+client  waits  for  soTimeout  without  any  communication to the target, a
+subsequent  write  would  zero  the  contents  of  the file before the file
+pointer. This file corruption bug has been fixed. 
+
 Sun Apr 17 22:37:04 EDT 2005
 jcifs-1.1.10 released
 
index 1d956ca..f238d3e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
 <project name="jcifs" default="usage" basedir=".">
 
-    <property name="version" value="1.1.10"/>
-    <property name="reldate" value="Apr 17, 2005"/>
+    <property name="version" value="1.1.11"/>
+    <property name="reldate" value="May 4, 2005"/>
 
     <target name="usage">
         <echo>
index 15b5d90..cb3d658 100644 (file)
@@ -137,6 +137,7 @@ write, and/or delete the file while the jCIFS user has the file open.
                                         new TransWaitNamedPipeResponse() );
         }
         file.open( openFlags, SmbFile.ATTR_NORMAL, 0 );
+        this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC); /* in case close and reopen */
         writeSize = file.tree.session.transport.snd_buf_size - 70;
 
         useNTSmbs = file.tree.session.transport.hasCapability( ServerMessageBlock.CAP_NT_SMBS );