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 |
} |