]> err.no Git - util-linux/commit
libblkid: fix the default cache file path
authorKarel Zak <kzak@redhat.com>
Tue, 29 Sep 2009 09:08:32 +0000 (11:08 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Sep 2009 11:30:56 +0000 (13:30 +0200)
commit24250c7aa6b4b5c1b6ff87f12d93730d2c8dd04b
tree72d19b1520e048b314bd6303ce8d542f62f083e8
parent566f35bc81d992bfec0a41485eea073854f54b0e
libblkid: fix the default cache file path

The blkid_get_cache_filename() can returns BLKID_CONFIG_FILE instead
BLKID_CACHE_FILE. Yeah, pretty stupid typo.

Fortunately, this brown-paper-bag bug is invisible in almost all cases,
because the default path is returned by blkid_read_config().  The bug
can be visible only when blkid_read_config() returns NULL -- it means
on parses or malloc error.

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/cache.c