aboutsummaryrefslogtreecommitdiff
path: root/util-linux/umount.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-14 22:57:20 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-14 22:57:20 +0000
commit7aaedcf21ee4c9eb49d7f1f74500c1b84cef75e7 (patch)
tree72f83132e3d6e64a67956ff2160fff7c8c9f22c1 /util-linux/umount.c
parent447ab18cf6e2a05842bab443255b0fdf0f4e598e (diff)
downloadbusybox-w32-7aaedcf21ee4c9eb49d7f1f74500c1b84cef75e7.tar.gz
busybox-w32-7aaedcf21ee4c9eb49d7f1f74500c1b84cef75e7.tar.bz2
busybox-w32-7aaedcf21ee4c9eb49d7f1f74500c1b84cef75e7.zip
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
Diffstat (limited to '')
-rw-r--r--util-linux/umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 901c9094f..5b22bfacc 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -73,9 +73,9 @@ int umount_main(int argc UNUSED_PARAM, char **argv)
73 } else { 73 } else {
74 while (getmntent_r(fp, &me, path, PATH_MAX)) { 74 while (getmntent_r(fp, &me, path, PATH_MAX)) {
75 /* Match fstype if passed */ 75 /* Match fstype if passed */
76 if (fstype && match_fstype(&me, fstype)) 76 if (!match_fstype(&me, fstype))
77 continue; 77 continue;
78 m = xmalloc(sizeof(struct mtab_list)); 78 m = xzalloc(sizeof(*m));
79 m->next = mtl; 79 m->next = mtl;
80 m->device = xstrdup(me.mnt_fsname); 80 m->device = xstrdup(me.mnt_fsname);
81 m->dir = xstrdup(me.mnt_dir); 81 m->dir = xstrdup(me.mnt_dir);