chiark / gitweb /
tmpfiles: remove dead branch
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 31 Jan 2015 06:03:09 +0000 (01:03 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 1 Feb 2015 17:44:04 +0000 (12:44 -0500)
commit612532206c531ab2aafd398338d5dd44cb6d3553
tree845e523b1d18d280221be718838c1c72a2cedfec
parent0775b9b61120f8be99cd45a7df907b828188cb47
tmpfiles: remove dead branch

In the test, p is a path to a directory, always absolute. dent->d_name
is a single path component, so they cannot be equal. The comparison
was wrong also for other reasons: D type supports globs, so direct
comparisons using streq are not enough.
src/tmpfiles/tmpfiles.c