- if (line[0] == '\t')
- continue;
-
- tab = strchr(line, '\t');
-
- if (tab != NULL) {
- *tab = '\0';
- cur = tab - 1;
- } else {
- /*
- * there's no tab character, which means the
- * NFS options are on a separate line; we just
- * need to remove the new-line character
- * at the end of the line
- */
- cur = line + strlen(line) - 1;
- }
-
- /* remove trailing spaces and new-line characters */
- while (cur >= line &&
- (*cur == ' ' || *cur == '\n'))
- *cur-- = '\0';
-
- if (strcmp(line, impl_share->sharepath) == 0) {
- share_active = B_TRUE;
-
- /*
- * We can't break here just yet, otherwise
- * exportfs might die due to write() failing
- * with EPIPE once we've closed the pipe file
- * descriptor - we need to read until EOF
- * occurs on the stdout pipe.
- */
- }