index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2012-08-28 21:59:25 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-04 21:49:38 +1000 |
commit | 7a83cd003a064a067a510514b62686c3e972fede (patch) | |
tree | 14f2a2608e31c83668dafb08e6903e889dab7f1f /src | |
parent | 49c5f515e91b2978f951634d6118ff58aa64b1de (diff) |
-rw-r--r-- | src/pacman/query.c | 6 |
diff --git a/src/pacman/query.c b/src/pacman/query.c index 0112423f..d1887e3a 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -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); |