mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-02 00:25:07 -04:00
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:
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…
Reference in New Issue
Block a user