stoddard    99/11/03 14:01:48

  Modified:    src/lib/apr/file_io/win32 open.c
  Log:
  Win32 APR: Handle open for append correctly.
  
  Revision  Changes    Path
  1.10      +4 -0      apache-2.0/src/lib/apr/file_io/win32/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/open.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- open.c    1999/10/21 00:31:09     1.9
  +++ open.c    1999/11/03 22:01:46     1.10
  @@ -136,6 +136,10 @@
           theerror = GetLastError();
           return APR_EEXIST;
       }
  +    if (flag & APR_APPEND) {
  +        SetFilePointer((*dafile)->filehand, 0, NULL, FILE_END);
  +    }
  +
       (*dafile)->stated = 0;  /* we haven't called stat for this file yet. */
       (*dafile)->eof_hit = 0;
       ap_register_cleanup((*dafile)->cntxt, (void *)(*dafile), file_cleanup,
  
  
  

Reply via email to