apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/file_io/unix dir.c
Date Wed, 24 Jan 2001 23:34:01 GMT
trawick     01/01/24 15:34:00

  Modified:    file_io/unix dir.c
  Log:
  Fix an error check logic which was broken with 1.43.  This caused
  apr_dir_read() to fail for builds which use readdir_r().
  
  Revision  Changes    Path
  1.49      +1 -1      apr/file_io/unix/dir.c
  
  Index: dir.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/dir.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- dir.c	2001/01/24 16:16:35	1.48
  +++ dir.c	2001/01/24 23:33:59	1.49
  @@ -125,7 +125,7 @@
       /* Avoid the Linux problem where at end-of-directory thedir->entry
        * is set to NULL, but ret = APR_SUCCESS.
        */
  -    if(!ret || thedir->entry != retent)
  +    if(!ret && thedir->entry != retent)
           ret = APR_ENOENT;
   #else
       thedir->entry = readdir(thedir->dirstruct);
  
  
  

Mime
View raw message