httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-apr/apr/file_io/unix filedup.c
Date Mon, 12 Apr 1999 15:06:36 GMT
rbb         99/04/12 08:06:35

  Modified:    apr/file_io/unix filedup.c
  Log:
  Modified duplicatefile so we can close the original file after duplicating
  without affecting the new file.
  Submitted by: Brian Havard
  
  Revision  Changes    Path
  1.2       +2 -2      apache-apr/apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/file_io/unix/filedup.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- filedup.c	1999/02/25 21:33:43	1.1
  +++ filedup.c	1999/04/12 15:06:35	1.2
  @@ -64,8 +64,8 @@
           errno = ENOMEM;
           return NULL;
       } 
  -    old_file->filedes = new_file->filedes; 
  -    old_file->fname = new_file->fname;
  +    old_file->filedes = dup(new_file->filedes); 
  +    old_file->fname = stdup(new_file->fname);
       old_file->buffered = new_file->buffered;
       old_file->protection = new_file->protection;
       old_file->user = new_file->user;
  
  
  

Mime
View raw message