View | Details | Raw Unified | Return to bug 120784 | Differences between
and this patch

Collapse All | Expand All

(-)sbin/mount/mount.c (-1 / +6 lines)
Lines 560-566 Link Here
560
	if (use_mountprog(vfstype)) {
560
	if (use_mountprog(vfstype)) {
561
		ret = exec_mountprog(name, execname, argv);
561
		ret = exec_mountprog(name, execname, argv);
562
	} else {
562
	} else {
563
		ret = mount_fs(vfstype, argc, argv); 
563
		ret = mount_fs(vfstype, argc, argv);
564
		if (ret < 0) {
565
			if (verbose)
566
				warn("falling back to old style mount");
567
			ret = exec_mountprog(name, execname, argv);
568
		}
564
	}
569
	}
565
570
566
	free(optbuf);
571
	free(optbuf);
(-)sbin/mount/mount_fs.c (-2 / +5 lines)
Lines 107-112 Link Here
107
				val = p + 1;
107
				val = p + 1;
108
			}
108
			}
109
			build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
109
			build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
110
			// Repair arguments, in case they are required when
111
			// falling back to the old style exec_mountprog.
112
			if (p != NULL) {
113
				*p = '=';
114
			}
110
			break;
115
			break;
111
		case '?':
116
		case '?':
112
		default:
117
		default:
Lines 131-138 Link Here
131
	build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
136
	build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
132
	
137
	
133
	ret = nmount(iov, iovlen, mntflags);
138
	ret = nmount(iov, iovlen, mntflags);
134
	if (ret < 0)
135
		err(1, "%s %s", dev, errmsg);
136
139
137
	return (ret);
140
	return (ret);
138
}
141
}

Return to bug 120784