Commit 59e7e2d5 authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep in autofs

parent 6c8d8588
......@@ -60,7 +60,9 @@ static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, pid
*pipefd = -1;
if ( !options ) return 1;
for (this_char = strtok(options,","); this_char; this_char = strtok(NULL,",")) {
while ((this_char = strsep(&options,",")) != NULL) {
if (!*value)
continue;
if ((value = strchr(this_char,'=')) != NULL)
*value++ = 0;
if (!strcmp(this_char,"fd")) {
......
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