mount: support "-O option"; stop trying to mount swap partitions
function old new delta mount_main 975 1152 +177 umount_main 640 636 -4 packed_usage 25666 25662 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 177/-8) Total: 169 bytes
This commit is contained in:
@ -73,9 +73,9 @@ int umount_main(int argc UNUSED_PARAM, char **argv)
|
||||
} else {
|
||||
while (getmntent_r(fp, &me, path, PATH_MAX)) {
|
||||
/* Match fstype if passed */
|
||||
if (fstype && match_fstype(&me, fstype))
|
||||
if (!match_fstype(&me, fstype))
|
||||
continue;
|
||||
m = xmalloc(sizeof(struct mtab_list));
|
||||
m = xzalloc(sizeof(*m));
|
||||
m->next = mtl;
|
||||
m->device = xstrdup(me.mnt_fsname);
|
||||
m->dir = xstrdup(me.mnt_dir);
|
||||
|
Reference in New Issue
Block a user