summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvy Foster <iff@escondida.tk>2018-01-25 21:56:38 +0100
committerAllan McRae <allan@archlinux.org>2018-02-06 02:11:44 +0100
commit640c2462bb573f6d228234af79f25c519b8ab6d5 (patch)
tree0e0310e13d119f0fa5e70dd3006b0538291ebc61
parenta278356f75866f89232e3e6230bbf9fb2dc1893c (diff)
downloadpacman-640c2462bb573f6d228234af79f25c519b8ab6d5.tar.gz
pacman-640c2462bb573f6d228234af79f25c519b8ab6d5.tar.xz
pacman/query.c: in query_fileowner, make is_dir an int
S_ISDIR is int and "returns non-zero" if the file is a directory. Signed-off-by: Ivy Foster <iff@escondida.tk> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--src/pacman/query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 4a37a338..91ca78a7 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -158,8 +158,9 @@ static int query_fileowner(alpm_list_t *targets)
char rpath[PATH_MAX], *rel_path;
struct stat buf;
alpm_list_t *i;
- size_t len, is_dir;
+ size_t len;
unsigned int found = 0;
+ int is_dir;
if((filename = strdup(t->data)) == NULL) {
goto targcleanup;