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

Andrew Gregory andrew.gregory.8 at gmail.com
Fri Jun 1 21:45:11 UTC 2018


On 06/01/18 at 11:41am, Joey Pabalinas wrote:
> 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.

Not the sysroot, rootdir.  I don't see how that would be overly
complex, we do it in other places already.


More information about the pacman-dev mailing list