apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/file_io/unix filestat.c
Date Fri, 14 Sep 2001 23:21:37 GMT
bnicholes    01/09/14 16:21:37

  Modified:    file_io/unix filestat.c
  Log:
  Added the ability to extract the APR_FINFO_NAME data for NetWare
  in apr_stat()
  
  Revision  Changes    Path
  1.47      +6 -0      apr/file_io/unix/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filestat.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- filestat.c	2001/08/10 21:04:47	1.46
  +++ filestat.c	2001/09/14 23:21:37	1.47
  @@ -150,6 +150,12 @@
           fill_out_finfo(finfo, &info, wanted);
           if (wanted & APR_FINFO_LINK)
               wanted &= ~APR_FINFO_LINK;
  +#ifdef NETWARE
  +        if (wanted & APR_FINFO_NAME) {
  +            finfo->name = apr_pstrdup(cont, info.st_name);
  +            finfo->valid |= APR_FINFO_NAME;
  +        }
  +#endif
           return (wanted & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
       }
       else {
  
  
  

Mime
View raw message