index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2016-06-27 22:23:43 -0400 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-08 23:27:41 -0400 |
commit | cebb20762dc9b15815a72dec190f566e6928582b (patch) | |
tree | 1def599873cb3bc7619813b338674cc26b83ce9e /lib/libalpm | |
parent | e770b5728bf048c44503e040f81786c6c56eebc8 (diff) |
-rw-r--r-- | lib/libalpm/hook.c | 2 |
diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c index 9b4f215d..ccde225e 100644 --- a/lib/libalpm/hook.c +++ b/lib/libalpm/hook.c @@ -675,7 +675,7 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when) continue; } - if(fstatat(dirfd(d), entry->d_name, &buf, 0) != 0) { + if(stat(path, &buf) != 0) { _alpm_log(handle, ALPM_LOG_ERROR, _("could not stat file %s: %s\n"), path, strerror(errno)); ret = -1; |