libalpm: fix lstat wrapper to actually use newpath

Commit b55abdce7a 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>
This commit is contained in:
Dan McGee 2007-11-11 09:37:59 -06:00
parent 7b4573d851
commit 2898ccb609
1 changed files with 1 additions and 1 deletions

View File

@ -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);