mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-11 07:31:04 -04:00
query_fileowner: don't append '/' if path is "/"
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
49c5f515e9
commit
7a83cd003a
@ -123,8 +123,10 @@ static int query_fileowner(alpm_list_t *targets)
|
||||
}
|
||||
|
||||
/* append trailing '/' removed by realpath */
|
||||
path[rootlen++] = '/';
|
||||
path[rootlen] = '\0';
|
||||
if(path[rootlen - 1] != '/') {
|
||||
path[rootlen++] = '/';
|
||||
path[rootlen] = '\0';
|
||||
}
|
||||
|
||||
db_local = alpm_get_localdb(config->handle);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user