From 2898ccb609da38cf4e7b62d83b88f56396515120 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 11 Nov 2007 09:37:59 -0600 Subject: [PATCH] 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 --- lib/libalpm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);