]> 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>
Mon, 30 Nov 2009 13:10:24 +0000 (14:10 +0100)
commit3bb52100378944c7c877143e4732940fe3abf250
tree6c6b70260a9a3be0204c209ecdcf768ac7b302af
parent9d82d262bc11510bfc163dc01153711e0fa645fc
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