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 | Allan McRae <allan@archlinux.org> | 2016-08-30 18:10:40 +1000 |
commit | be1ffedaf6fc44aeb9da235d64889dac71e9bf24 (patch) | |
tree | 3914802c4d07afb05fafe2c2b6971c9f8c13899e /lib | |
parent | c981f5ad76cb77363dcb4ebcc199670c3378995f (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; |