apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/file_io/os2 open.c
Date Thu, 26 Dec 2002 08:27:26 GMT
bjh         2002/12/26 00:27:26

  Modified:    file_io/os2 open.c
  Log:
  OS/2: Fix file open flag manipulation so that APR_EXCL actually works. This
  also fixes a number of other testfile failures.
  
  Revision  Changes    Path
  1.55      +1 -1      apr/file_io/os2/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/os2/open.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- open.c	13 Oct 2002 03:34:32 -0000	1.54
  +++ open.c	26 Dec 2002 08:27:26 -0000	1.55
  @@ -120,7 +120,7 @@
   
       if (flag & APR_TRUNCATE) {
           oflags |= OPEN_ACTION_REPLACE_IF_EXISTS;
  -    } else if ((oflags & 0xF) == 0) {
  +    } else if ((oflags & 0xFF) == 0) {
           oflags |= OPEN_ACTION_OPEN_IF_EXISTS;
       }
       
  
  
  

Mime
View raw message