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/unix filestat.c
Date Thu, 12 Dec 2002 20:43:15 GMT
wrowe       2002/12/12 12:43:14

  Modified:    file_io/unix filestat.c
  Log:
    Fix of my braindead error, submitted by Karl Fogel <kfogel@newton.ch.collab.net>
  
  Revision  Changes    Path
  1.60      +3 -3      apr/file_io/unix/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filestat.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- filestat.c	12 Dec 2002 15:41:16 -0000	1.59
  +++ filestat.c	12 Dec 2002 20:43:14 -0000	1.60
  @@ -62,7 +62,7 @@
   {
       apr_filetype_e type;
   
  -    switch (type & S_IFMT) {
  +    switch (mode & S_IFMT) {
       case S_IFREG:
           type = APR_REG;  break;
       case S_IFDIR:
  @@ -87,12 +87,12 @@
            * for Linux et al.
            */
   #if !defined(S_IFFIFO) && defined(S_ISFIFO)
  -    	if (S_ISFIFO(type)) {
  +    	if (S_ISFIFO(mode)) {
               type = APR_PIPE;
   	} else
   #endif
   #if !defined(BEOS) && !defined(S_IFSOCK) && defined(S_ISSOCK)
  -    	if (S_ISSOCK(type)) {
  +    	if (S_ISSOCK(mode)) {
               type = APR_SOCK;
   	} else
   #endif
  
  
  

Mime
View raw message