diff options
Diffstat (limited to 'src/shutdown/umount.c')
-rw-r--r-- | src/shutdown/umount.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index ea9fba8831..5b1160833b 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -61,12 +61,7 @@ int mount_points_list_get(const char *mountinfo, MountPoint **head) { assert(head); - table = mnt_new_table(); - iter = mnt_new_iter(MNT_ITER_FORWARD); - if (!table || !iter) - return log_oom(); - - r = mnt_table_parse_mtab(table, mountinfo); + r = libmount_parse(mountinfo, NULL, &table, &iter); if (r < 0) return log_error_errno(r, "Failed to parse %s: %m", mountinfo); |