diff options
author | Jim Meyering <jim@meyering.net> | 2006-05-15 13:28:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-15 13:28:24 +0000 |
commit | 212ffe61af2354dacd07f9391defa5645630b8dd (patch) | |
tree | 83f0a3bbc69d3d472350a409973dc95033a9beec /lib | |
parent | 06918c95896d5f43de3b7383e4fb7be0c1b3659e (diff) | |
download | coreutils-212ffe61af2354dacd07f9391defa5645630b8dd.tar.xz |
(xfts_open): Always use FTS_CWDFD.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xfts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xfts.c b/lib/xfts.c index c2fb375e5..c115b3752 100644 --- a/lib/xfts.c +++ b/lib/xfts.c @@ -1,6 +1,6 @@ /* xfts.c -- a wrapper for fts_open - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,7 +40,7 @@ FTS * xfts_open (char * const *argv, int options, int (*compar) (const FTSENT **, const FTSENT **)) { - FTS *fts = fts_open (argv, options, compar); + FTS *fts = fts_open (argv, options | FTS_CWDFD, compar); if (fts == NULL) { /* This can fail in three ways: out of memory, invalid bit_flags, |