index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2018-01-09 20:48:35 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-01-09 20:48:35 +1000 |
commit | 24ab8717d459c07c51f47b7b66736de17ca23e9e (patch) | |
tree | a86a7f76d337e900d6274a9f861e4e13ef7423b8 | |
parent | 3a9a510ca873df123a117133c7cb3ebaa711159c (diff) |
-rw-r--r-- | src/pacman/query.c | 5 |
diff --git a/src/pacman/query.c b/src/pacman/query.c index 024d3e21..4a37a338 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -165,6 +165,11 @@ static int query_fileowner(alpm_list_t *targets) goto targcleanup; } + if(strcmp(filename, "") == 0) { + pm_printf(ALPM_LOG_ERROR, _("empty string passed to file owner query\n")); + goto targcleanup; + } + /* trailing '/' causes lstat to dereference directory symlinks */ len = strlen(filename) - 1; while(len > 0 && filename[len] == '/') { |