mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
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>
This commit is contained in:
parent
7b4573d851
commit
2898ccb609
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user