[pacman-dev] [PATCH] Strip leading "/" from arguments to --overwrite

Joey Pabalinas joeypabalinas at gmail.com
Fri Jun 1 21:41:03 UTC 2018


On Fri, Jun 01, 2018 at 05:13:37PM -0400, Andrew Gregory wrote:
> If we're going to allow absolute paths, should we not be removing the
> full root, not just '/'?

Did you mean strip out the sysroot in the event it happens to not be "/"? In
my opinion, although doable, the logic you'd need to add would make this far
more complex than just stripping out leading "/", and how scarce that particular
situation is in reality make this not really seem like a worthwhile trade-off
to me.

-- 
Cheers,
Joey Pabalinas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20180601/872a795b/attachment.asc>


More information about the pacman-dev mailing list