Lines Matching refs:newopts
124 static void append_mount_options(char **oldopts, const char *newopts)
128 while (newopts[0]) {
130 int len = strlen(newopts);
131 p = strchr(newopts, ',');
132 if (p) len = p - newopts;
135 if (!strncmp(p, newopts, len)
142 p = xasprintf("%s,%.*s", *oldopts, len, newopts);
146 newopts += len;
147 while (newopts[0] == ',') newopts++;
151 *oldopts = xstrdup(newopts);