diff options
author | Jim Meyering <jim@meyering.net> | 2005-01-05 07:47:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-01-05 07:47:45 +0000 |
commit | 0262163b1303f955f3af9b296491e28b68c5e3ad (patch) | |
tree | a162b3ce72980db11ce20189f186725797985f48 /src/du.c | |
parent | f4ba67d7d257f25b4909045c007cb69e546f7d93 (diff) | |
download | coreutils-0262163b1303f955f3af9b296491e28b68c5e3ad.tar.xz |
(process_file): Evaluate exclusion rules against
the entire file name, not just the last component.
Diffstat (limited to 'src/du.c')
-rw-r--r-- | src/du.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* du -- summarize disk usage - Copyright (C) 1988-1991, 1995-2004 Free Software Foundation, Inc. + Copyright (C) 1988-1991, 1995-2005 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 @@ -336,7 +336,7 @@ process_file (FTS *fts, FTSENT *ent) bool skip; /* If necessary, set FTS_SKIP before returning. */ - skip = excluded_filename (exclude, ent->fts_name); + skip = excluded_filename (exclude, ent->fts_path); if (skip) fts_set (fts, ent, FTS_SKIP); |