Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   query_fileowner: remove assumption that root is "/" (http://www.linux-archive.org/archlinux-pacman-development/698045-query_fileowner-remove-assumption-root.html)

Allan McRae 08-27-2012 07:24 AM

query_fileowner: remove assumption that root is "/"
 
On 12/08/12 07:35, Andrew Gregory wrote:
> Returning "/" from mdirname removes it as a special case which allows us to
> test it like any other directory. This corrects a false positive when querying
> a file in / and root is not set to /.
>
> Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
> ---
> src/pacman/query.c | 31 ++++++-------------------------
> src/pacman/util.c | 5 +++++
> 2 files changed, 11 insertions(+), 25 deletions(-)
>

Ack-by: Allan

Sorry it took so long to get to looking at these patches.


All times are GMT. The time now is 12:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.