variable is set, use it to find the blkid.tab file if the
calling application did not supply a filename.
+2004-04-12 Theodore Ts'o <tytso@mit.edu>
+
+ * cache.c (blkid_get_cache): If the BLKID_FILE environment
+ variable is set, use it to find the blkid.tab file if the
+ calling application did not supply a filename.
+
2004-04-03 Theodore Ts'o <tytso@mit.edu>
* Makefile.in: Update the modtime even if subst doesn't need to
INIT_LIST_HEAD(&cache->bic_devs);
INIT_LIST_HEAD(&cache->bic_tags);
- if (!filename || !strlen(filename))
+ if (filename && !strlen(filename))
+ filename = 0;
+ if (!filename)
+ filename = getenv("BLKID_FILE");
+ if (!filename)
filename = BLKID_CACHE_FILE;
cache->bic_filename = blkid_strdup(filename);