From: Jim Meyering Date: Fri, 31 Aug 2001 06:46:39 +0000 (+0000) Subject: (count_entry, main): Reflect changes to the exclude functions. X-Git-Tag: TEXTUTILS-2_0_15~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e18bbb519a3bf01d272f77c22b283b122cb04d6;p=thirdparty%2Fcoreutils.git (count_entry, main): Reflect changes to the exclude functions. --- diff --git a/src/du.c b/src/du.c index ab47a620f9..f4b483a22e 100644 --- a/src/du.c +++ b/src/du.c @@ -577,7 +577,7 @@ count_entry (const char *ent, int top, dev_t last_dev, int depth) for (namep = name_space; *namep; namep += strlen (namep) + 1) { - if (!excluded_filename (exclude, namep, 0)) + if (!excluded_filename (exclude, namep)) { str_concatc (path, namep); size += count_entry (namep, 0, dir_dev, depth + 1); @@ -739,12 +739,13 @@ main (int argc, char **argv) break; case 'X': - if (add_exclude_file (add_exclude, exclude, optarg, '\n') != 0) + if (add_exclude_file (add_exclude, exclude, optarg, + EXCLUDE_WILDCARDS, '\n')) error (1, errno, "%s", quote (optarg)); break; case EXCLUDE_OPTION: - add_exclude (exclude, optarg); + add_exclude (exclude, optarg, EXCLUDE_WILDCARDS); break; case BLOCK_SIZE_OPTION: