From 212ffe61af2354dacd07f9391defa5645630b8dd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 15 May 2006 13:28:24 +0000 Subject: (xfts_open): Always use FTS_CWDFD. --- lib/xfts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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, -- cgit v1.2.3-54-g00ecf