apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/include apr_file_info.h
Date Wed, 19 Nov 2003 00:38:39 GMT
wrowe       2003/11/18 16:38:39

  Modified:    file_io/win32 Tag: APR_0_9_BRANCH filestat.c
               include  Tag: APR_0_9_BRANCH apr_file_info.h
  Log:
    Unix propagates the fname from the apr_file_t to apr_file_info_t
    on an apr_file_info_get() call.  Do the same on Win32, but be
    warned that this is informative, and is not a canonical representation.
  
    Backported the fix from 1.0 HEAD.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.81.2.1  +6 -0      apr/file_io/win32/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/filestat.c,v
  retrieving revision 1.81
  retrieving revision 1.81.2.1
  diff -u -r1.81 -r1.81.2.1
  --- filestat.c	7 Jul 2003 22:44:10 -0000	1.81
  +++ filestat.c	19 Nov 2003 00:38:39 -0000	1.81.2.1
  @@ -445,6 +445,12 @@
       }
   
       finfo->pool = thefile->pool;
  +
  +    /* ### The finfo lifetime may exceed the lifetime of thefile->pool
  +     * but finfo's aren't managed in pools, so where on earth would
  +     * we pstrdup the fname into???
  +     */
  +    finfo->fname = thefile->fname;
    
       /* Extra goodies known only by GetFileInformationByHandle() */
       finfo->inode  =  (apr_ino_t)FileInfo.nFileIndexLow
  
  
  
  No                   revision
  No                   revision
  1.40.2.1  +1 -1      apr/include/apr_file_info.h
  
  Index: apr_file_info.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_file_info.h,v
  retrieving revision 1.40
  retrieving revision 1.40.2.1
  diff -u -r1.40 -r1.40.2.1
  --- apr_file_info.h	5 Mar 2003 21:22:25 -0000	1.40
  +++ apr_file_info.h	19 Nov 2003 00:38:39 -0000	1.40.2.1
  @@ -229,7 +229,7 @@
       apr_time_t mtime;
       /** The time the file was last changed */
       apr_time_t ctime;
  -    /** The full pathname of the file */
  +    /** The pathname of the file (possibly unrooted) */
       const char *fname;
       /** The file's name (no path) in filesystem case */
       const char *name;
  
  
  

Mime
View raw message