You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2001/09/15 01:21:37 UTC

cvs commit: apr/file_io/unix filestat.c

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 {