Signed-off-by: Karel Zak <kzak@redhat.com>
if (!lowprobe && !eval && blkid_get_cache(&cache, read) < 0)
goto exit;
- err = 2;
if (gc) {
blkid_gc_cache(cache);
+ err = 0;
goto exit;
}
+ err = 2;
+
if (output_format & OUTPUT_PRETTY_LIST)
pretty_print_dev(NULL);
* Evaluate API
*/
char *res = blkid_evaluate_spec(search_type, search_value, NULL);
- if (res)
+ if (res) {
+ err = 0;
printf("%s\n", res);
+ }
} else if (lookup) {
/*
* Classic (cache based) API