index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-06-19 01:23:20 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-06-26 15:32:16 +1000 |
commit | 96ac9c52995ff5be8c4ed9f71f1bf08d0d0f0872 (patch) | |
tree | 53addf6908d768ed9b07ee9b89656dede4ecf2bb /src | |
parent | b36b87656ef8e341dccc5c683ed9f814c0017c67 (diff) |
-rw-r--r-- | src/pacman/query.c | 2 |
diff --git a/src/pacman/query.c b/src/pacman/query.c index f27c5c29..c9c82b94 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -102,7 +102,7 @@ static char *lrealpath(const char *path, char *resolved_path) char *rpath = NULL, *dname = NULL; int success = 0; - if(strcmp(path, ".") == 0 || strcmp(path, "..") == 0) { + if(strcmp(bname, ".") == 0 || strcmp(bname, "..") == 0) { /* the entire path needs to be resolved */ return realpath(path, resolved_path); } |