[Rpm-maint] [rpm-software-management/rpm] RFE: differentiate file and directory dependencies using a trailing '/' (#439)

Jeff Johnson notifications at github.com
Thu Apr 26 21:47:48 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180426/7364d5ea/attachment-0001.html>


More information about the Rpm-maint mailing list