trawick 01/12/06 05:43:45
Modified: . CHANGES
file_io/unix filedup.c
Log:
Fix a problem in Unix apr_file_dup() which caused 0 to be returned
by the first read.
Submitted by: Stas Bekman <[EMAIL PROTECTED]>
Reviewed by: Jeff Trawick
Revision Changes Path
1.192 +3 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -r1.191 -r1.192
--- CHANGES 2001/11/26 23:36:02 1.191
+++ CHANGES 2001/12/06 13:43:45 1.192
@@ -1,5 +1,8 @@
Changes with APR b1
+ *) Fix a problem in Unix apr_file_dup() which caused 0 to be returned
+ by the first read. [Stas Bekman <[EMAIL PROTECTED]>]
+
*) Fix a buglet that caused APR_FILE_BASED_SHM to be set inadvertently
on some platforms (e.g., Linux, AIX). [Jeff Trawick]
1.36 +2 -0 apr/file_io/unix/filedup.c
Index: filedup.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- filedup.c 2001/11/21 04:21:03 1.35
+++ filedup.c 2001/12/06 13:43:45 1.36
@@ -89,6 +89,8 @@
}
/* this is the way dup() works */
(*new_file)->blocking = old_file->blocking;
+ /* make sure unget behavior is consistent */
+ (*new_file)->ungetchar = old_file->ungetchar;
/* apr_file_dup() clears the inherit attribute, user must call
* apr_file_set_inherit() again on the dupped handle, as necessary.
*/