[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH 10/19] find: avoid using undefined statbuf
From: |
James Youngman |
Subject: |
[Findutils-patches] [PATCH 10/19] find: avoid using undefined statbuf |
Date: |
Fri, 10 Apr 2009 23:53:07 +0100 |
From: Jim Meyering <address@hidden>
* find/ftsfind.c (consider_visiting): Use local variable, mode,
rather than possibly undefined statbuf.st_mode.
(cherry picked from commit f4d8c73d0bc493c07da291e2587192113270d319)
---
find/ftsfind.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/find/ftsfind.c b/find/ftsfind.c
index 1fc5459..b59d896 100644
--- a/find/ftsfind.c
+++ b/find/ftsfind.c
@@ -498,7 +498,7 @@ consider_visiting(FTS *p, FTSENT *ent)
/* examine this item. */
ignore = 0;
- isdir = S_ISDIR(statbuf.st_mode)
+ isdir = S_ISDIR(mode)
|| (FTS_D == ent->fts_info)
|| (FTS_DP == ent->fts_info)
|| (FTS_DC == ent->fts_info);
--
1.5.6.5
- [Findutils-patches] [PATCH 00/19] *** SUBJECT HERE ***, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 01/19] Applied doc patch from Stepan Kasal (backport), James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 02/19] Fix Savannah bug 22662 (nanoseconds wrongly appended after PM for find -printf %AX), James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 03/19] Fix bugs in bugfix for #22662, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 04/19] Fixed Savannah bug #23663, crash in some locales for find -printf '%AX', James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 05/19] Fix bug #23996 (integer overflow when parsing "-used 3")., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 06/19] Moved bugfixes in the NEWS file out of "Documentation Enhancements" into "Bug Fixes"., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 07/19] Fix Savannah bug #24283, find-4.5.2 -printf %TY causes NULL pointer dereference, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 08/19] Typo fix from Jim Meyering <address@hidden>, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 09/19] fix a typo in a comment, James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 10/19] find: avoid using undefined statbuf,
James Youngman <=
- [Findutils-patches] [PATCH 11/19] find: Fix -regexptype parse specification bug: declare as POSOPT., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 12/19] find: avoid warning about unused local, remove unnecessary include., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 13/19] Really apply Jim's earlier patch., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 14/19] Fix Savannah bug #25764, duplicate entry for proc in PRUNEFS., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 15/19] Provide more detailed help on how to work with the git sources., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 16/19] Ignore 'compile', James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 17/19] Change suffix for non-release versions from -CVS to -git., James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 18/19] clean tool-versions.txt for 'make distclean', James Youngman, 2009/04/10
- [Findutils-patches] [PATCH 19/19] Remove unused Debian files; the Debian package doesn't use them., James Youngman, 2009/04/10