[pacman-dev] [PATCH] unlink_file: strip trailing slashes

Allan McRae allan at archlinux.org
Wed Apr 12 02:00:03 UTC 2017


On 10/04/17 09:49, Andrew Gregory wrote:
> Subtle problems like this could be avoided by removing the trailing slashes
> from libalpm's internal file lists.  Is there any reason not to remove them and
> use a field in the file_t struct to indicate type?  It already has a mode field
> that we could use.

At the moment, that is the only way we know something should be a
directory from the local db.  If the local db contained that information
in another format, I'd be happy to remove the trailing slash.

A


More information about the pacman-dev mailing list