apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/win32 dir.c
Date Wed, 24 Jan 2001 21:13:13 GMT
wrowe       01/01/24 13:13:13

  Modified:    file_io/win32 dir.c
  Log:
    Transpose the order of evaluation for APR_LNK on win32
  
  Revision  Changes    Path
  1.47      +5 -5      apr/file_io/win32/dir.c
  
  Index: dir.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/dir.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- dir.c	2001/01/23 19:53:38	1.46
  +++ dir.c	2001/01/24 21:13:13	1.47
  @@ -238,13 +238,13 @@
        * the BLK, CHR, and other oddballs, since they should -not- occur in this
        * context.
        */
  -    if (thedir->n.entry->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
  -        finfo->filetype = APR_DIR;
  +    if (thedir->n.entry->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) {
  +        finfo->filetype = APR_LNK;
           finfo->valid |= APR_FINFO_TYPE;
       }
  -    else if (thedir->n.entry->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
{
  -        finfo->filetype = APR_LNK;
  -        finfo->valid |= APR_FINFO_TYPE | APR_FINFO_LINK;
  +    else if (thedir->n.entry->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
  +        finfo->filetype = APR_DIR;
  +        finfo->valid |= APR_FINFO_TYPE;
       }
       else {
           finfo->filetype = APR_REG;
  
  
  

Mime
View raw message