Commit 45bb7fa2 authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep for reiserfs

parent 3796dc0b
......@@ -508,7 +508,9 @@ static int parse_options (char * options, unsigned long * mount_options, unsigne
/* use default configuration: create tails, journaling on, no
conversion to newest format */
return 1;
for (this_char = strtok (options, ","); this_char != NULL; this_char = strtok (NULL, ",")) {
while ((this_char = strsep (&options, ",")) != NULL) {
if (!*this_char)
continue;
if ((value = strchr (this_char, '=')) != NULL)
*value++ = 0;
if (!strcmp (this_char, "notail")) {
......
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