summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pacman/query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 23be7524..32752ffb 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -75,7 +75,7 @@ static int query_fileowner(alpm_list_t *targets)
struct stat buf;
alpm_list_t *i, *j;
- if(stat(filename, &buf) == -1) {
+ if(lstat(filename, &buf) == -1) {
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to read file '%s': %s\n"),
filename, strerror(errno));
ret++;