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>
This commit is contained in:
parent
a278356f75
commit
640c2462bb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue