FreeBSD Bugzilla – Attachment 158168 Details for
Bug 168158
[zfs] incorrect parsing of sharenfs options in zfs (fsshare.c)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to support hyphenated host names in sharenfs zfs property.
fsshare.diff (text/plain), 571 bytes, created by
eborisch+FreeBSD
on 2015-06-29 17:40:05 UTC
(
hide
)
Description:
Patch to support hyphenated host names in sharenfs zfs property.
Filename:
MIME Type:
Creator:
eborisch+FreeBSD
Created:
2015-06-29 17:40:05 UTC
Size:
571 bytes
patch
obsolete
>Index: cddl/compat/opensolaris/misc/fsshare.c >=================================================================== >--- cddl/compat/opensolaris/misc/fsshare.c (revision 284880) >+++ cddl/compat/opensolaris/misc/fsshare.c (working copy) >@@ -129,7 +129,9 @@ translate_opts(const char *shareopts) > strlcpy(oldopts, shareopts, sizeof(oldopts)); > newopts[0] = '\0'; > s = oldopts; >- while ((o = strsep(&s, "-, ")) != NULL) { >+ while ((o = strsep(&s, ", ")) != NULL) { >+ if (o[0] == '-') >+ ++o; > if (o[0] == '\0') > continue; > for (i = 0; known_opts[i] != NULL; i++) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 168158
: 158168 |
252620