]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(process_file): Evaluate exclusion rules against
authorJim Meyering <jim@meyering.net>
Wed, 5 Jan 2005 07:47:45 +0000 (07:47 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Jan 2005 07:47:45 +0000 (07:47 +0000)
the entire file name, not just the last component.

src/du.c

index 5fd3483fa676d464196cd6d1519ec76760c7774a..6036301ea127321aef96e72afa69f907c4b3409e 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -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);