nxt_fs.c (1673:883f2f79c2f6) nxt_fs.c (1674:3828127016b3)
1/*
2 * Copyright (C) NGINX, Inc.
3 */
4
5#include <nxt_main.h>
6
7#if (NXT_HAVE_FREEBSD_NMOUNT)
8#include <sys/param.h>

--- 158 unchanged lines hidden (view full) ---

167 p = end + 1;
168 end = nxt_strchr(p, '=');
169 if (end == NULL) {
170 break;
171 }
172
173 *end = '\0';
174
1/*
2 * Copyright (C) NGINX, Inc.
3 */
4
5#include <nxt_main.h>
6
7#if (NXT_HAVE_FREEBSD_NMOUNT)
8#include <sys/param.h>

--- 158 unchanged lines hidden (view full) ---

167 p = end + 1;
168 end = nxt_strchr(p, '=');
169 if (end == NULL) {
170 break;
171 }
172
173 *end = '\0';
174
175 iov[iovlen++].iov_base = (void *) p;
176 iov[iovlen++].iov_len = (end - p) + 1;
175 iov[iovlen].iov_base = (void *) p;
176 iov[iovlen].iov_len = (end - p) + 1;
177
177
178 iovlen++;
179
178 p = end + 1;
179
180 end = nxt_strchr(p, ',');
181 if (end != NULL) {
182 *end = '\0';
183 }
184
180 p = end + 1;
181
182 end = nxt_strchr(p, ',');
183 if (end != NULL) {
184 *end = '\0';
185 }
186
185 iov[iovlen++].iov_base = (void *) p;
186 iov[iovlen++].iov_len = nxt_strlen(p) + 1;
187 iov[iovlen].iov_base = (void *) p;
188 iov[iovlen].iov_len = nxt_strlen(p) + 1;
187
189
190 iovlen++;
191
188 } while (end != NULL && nxt_nitems(iov) > (iovlen + 2));
189 }
190
191 ret = NXT_OK;
192
193 if (nxt_slow_path(nmount(iov, iovlen, flags) < 0)) {
194 nxt_alert(task, "nmount(%p, %d, 0) %s", iov, iovlen, errmsg);
195 ret = NXT_ERROR;

--- 85 unchanged lines hidden ---
192 } while (end != NULL && nxt_nitems(iov) > (iovlen + 2));
193 }
194
195 ret = NXT_OK;
196
197 if (nxt_slow_path(nmount(iov, iovlen, flags) < 0)) {
198 nxt_alert(task, "nmount(%p, %d, 0) %s", iov, iovlen, errmsg);
199 ret = NXT_ERROR;

--- 85 unchanged lines hidden ---