From cvs-return-4476-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Thu Dec 12 20:43:17 2002 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 38845 invoked by uid 500); 12 Dec 2002 20:43:16 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 38832 invoked from network); 12 Dec 2002 20:43:16 -0000 Date: 12 Dec 2002 20:43:15 -0000 Message-ID: <20021212204315.80484.qmail@icarus.apache.org> From: wrowe@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/file_io/unix filestat.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N wrowe 2002/12/12 12:43:14 Modified: file_io/unix filestat.c Log: Fix of my braindead error, submitted by Karl Fogel 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