]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mtab update for "none" source
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:24:20 +0000 (21:24 +0200)
commitb5962110d274b06388d83f7bcee6b72ebc442170
tree76db54de3218cc377e74057b4ac85ed8b41d2512
parent5af0769de62f25f39199fb0df677d185ed8492ce
libmount: fix mtab update for "none" source

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>
libmount/src/tab_update.c