diff options
author | Karl Berry <karl@freefriends.org> | 2008-12-13 17:16:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-12-13 17:16:32 +0000 |
commit | 835a7fedd0e16750e278f59887521123bb9163f4 (patch) | |
tree | 6ff6ecc3769e6090fc735f7ba8c8168b63fd8d85 /Build/source/texk/kpathsea/elt-dirs.c | |
parent | 2960fb3a5767258bbea70848c41e31f3e2d15d4d (diff) |
only do the st_nlink trick if the link count is exactly; tlbuild from Ken Brown, 12 Dec 2008 13:42:19
git-svn-id: svn://tug.org/texlive/trunk@11605 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/elt-dirs.c')
-rw-r--r-- | Build/source/texk/kpathsea/elt-dirs.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Build/source/texk/kpathsea/elt-dirs.c b/Build/source/texk/kpathsea/elt-dirs.c index 820ccce87f2..9c223b37845 100644 --- a/Build/source/texk/kpathsea/elt-dirs.c +++ b/Build/source/texk/kpathsea/elt-dirs.c @@ -280,14 +280,13 @@ do_subdir P4C(str_llist_type *, str_list_ptr, const_string, elt, some such, we can still find subdirectories, even if it is much slower. */ #ifdef ST_NLINK_TRICK -#ifdef AMIGA - /* With SAS/C++ 6.55 on the Amiga, `stat' sets the `st_nlink' - field to -1 for a file, or to 1 for a directory. */ - if (links == 1) -#else - if (links > 2) -#endif /* not AMIGA */ -#endif /* not ST_NLINK_TRICK */ + /* With SAS/C++ 6.55 on the Amiga, stat sets the st_nlink + field to -1 for a file, or to 1 for a directory. + Cygwin 1.7 also leaves st_nlink as 1: + http://cygwin.com/ml/cygwin-developers/2008-04/msg00110.html + */ + if (links != 2) +#endif /* ST_NLINK_TRICK */ /* All criteria are met; find subdirectories. */ do_subdir (str_list_ptr, FN_STRING (name), potential_len, post); |