diff options
author | Jim Meyering <jim@meyering.net> | 2001-08-31 06:46:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-08-31 06:46:39 +0000 |
commit | 0e18bbb519a3bf01d272f77c22b283b122cb04d6 (patch) | |
tree | 649ed024cf99117dc2d07419d7d0b1a7649f911d /src/du.c | |
parent | 473f37a6c962f88985f701f4f3474ddf6ce58086 (diff) | |
download | coreutils-0e18bbb519a3bf01d272f77c22b283b122cb04d6.tar.xz |
(count_entry, main): Reflect changes to the exclude functions.
Diffstat (limited to 'src/du.c')
-rw-r--r-- | src/du.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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: |