summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-11 16:37:59 +0100
committerDan McGee <dan@archlinux.org>2007-11-11 16:51:09 +0100
commit2898ccb609da38cf4e7b62d83b88f56396515120 (patch)
tree843d300f4e22dcc5c6ea6ae49ec3ac3bbf7e04e1
parent7b4573d851464af53d34820769c0914f08c5ffeb (diff)
downloadpacman-2898ccb609da38cf4e7b62d83b88f56396515120.tar.gz
pacman-2898ccb609da38cf4e7b62d83b88f56396515120.tar.xz
libalpm: fix lstat wrapper to actually use newpath
Commit b55abdce7aebb142ce79da3aa3645afe7693a3c4 introduced an lstat wrapper function that never dereferences paths with a trailing slash, but still called lstat on path instead of newpath. Oops! Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 8ca6350b..2424e87d 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -614,7 +614,7 @@ int _alpm_lstat(const char *path, struct stat *buf)
newpath[len - 1] = '\0';
}
- ret = lstat(path, buf);
+ ret = lstat(newpath, buf);
FREE(newpath);
return(ret);