(process_file): Evaluate exclusion rules against
the entire file name, not just the last component.
printf '===\n' >> out
# Make sure that we can exclude an entire hierarchy.
du --exclude=a a >> out || fail=1
+# Make sure that we can exclude based on more than one component.
+# Before coreutils-5.3.0, this part would fail.
+printf '===\n' >> out
+du --exclude=a/u --exclude=a/b a \
+ | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1
cat <<\EOF > exp
a
a/b
a/x
a/x/y
===
+===
+a
+a/x
+a/x/y
EOF
cmp out exp || fail=1