diff options
author | Karel Zak | 2010-12-22 13:15:04 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:48 +0100 |
commit | f84fa6f7b98dd00ef6f196815b18590ca50c3528 (patch) | |
tree | 6b7c7f0a084ea242240c2fb0d9980e954ae24fcc /shlibs/mount/src/tab_parse.c | |
parent | tests: check for mtab (diff) | |
download | kernel-qcow2-util-linux-f84fa6f7b98dd00ef6f196815b18590ca50c3528.tar.gz kernel-qcow2-util-linux-f84fa6f7b98dd00ef6f196815b18590ca50c3528.tar.xz kernel-qcow2-util-linux-f84fa6f7b98dd00ef6f196815b18590ca50c3528.zip |
libmount: better work with mtab options
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab_parse.c')
-rw-r--r-- | shlibs/mount/src/tab_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/mount/src/tab_parse.c b/shlibs/mount/src/tab_parse.c index a6c14ffff..335f703aa 100644 --- a/shlibs/mount/src/tab_parse.c +++ b/shlibs/mount/src/tab_parse.c @@ -469,7 +469,7 @@ mnt_tab *__mnt_new_tab_from_file(const char *filename, int fmt) if (!filename) return NULL; - if (stat(filename, &st) || st.st_size == 0) + if (stat(filename, &st)) return NULL; tb = mnt_new_tab(); if (tb) { |