]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mtab update for "none" source, fix leak stable/v2.19
authorKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2011 19:24:20 +0000 (21:24 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2011 19:52:34 +0000 (21:52 +0200)
commit696b84b30a31dcb2fb1383d5afe08abcc1597eab
tree46b50e919cac8e0dc266fa493d071247d6d8df2b
parent9f014a4f1c5c59fe5561a0398f979564e6bd92e0
libmount: fix mtab update for "none" source, fix leak

tab_parse.c:mnt_parse_mountinfo_line parses "none" in src as NULL,

tab_update.c:fprintf_mtab_fs sets m1 to NULL instead of "none" and
returns -ENOMEM
tab_update.c:update_table says "write entry failed: Success", as errno
hasn't been set, and gotos to leave, leaving mtab not updated.

Addresses-debian-bug: 634871
Reported-by: Tomas Janousek <tomi@nomi.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/mount/src/fs.c
shlibs/mount/src/tab_update.c
tests/ts/libmount/update