Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys: use strstr() to detect installed packages
Don't rely on sscanf() doesn't care about unused suffixes of the status string. Use strstr() instead to make sure only actually installed packages are returned. Suggested-by: Eric Fahlgren <ericfahlgren@gmail.com> Reported-by: Eric Fahlgren <ericfahlgren@gmail.com> Fixes: openwrt#6 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information