Commit 6d322ead authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep in hpfs

parent c3436298
......@@ -222,7 +222,9 @@ int parse_opts(char *opts, uid_t *uid, gid_t *gid, umode_t *umask,
/*printk("Parsing opts: '%s'\n",opts);*/
for (p = strtok(opts, ","); p != 0; p = strtok(0, ",")) {
while ((p = strsep(&opts, ",")) != NULL) {
if (!*p)
continue;
if ((rhs = strchr(p, '=')) != 0)
*rhs++ = '\0';
if (!strcmp(p, "help")) return 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment