RPM has only path and directory dependencies, largely because the path
canonicalization in rpmCleanPath() always strips a trailing '/' character.
Luckily, the (arguably hacky) fix is not very complicated.
1) always over allocate paths by 1 byte to accomodate a trailing '/' (if
necessary.
2) Copy the trailing character of the input argument to rpmCleanPath() to the
return value when it's a trailing '/'
The above heuristic starts to propagate a hint to the expected file type
throughout rpm, thereby diffentiating dir/file dependencies with stricter tests
for, say, %ghost marked paths.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/439#issuecomment-384799422
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint