FreeBSD Bugzilla – Attachment 167756 Details for
Bug 176449
zfs(1): ZFS NFS export went wrong with special hostname character
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch cddl/compat/opensolaris/misc/fsshare.c for saner options parsing
patch.txt (text/plain), 1002 bytes, created by
Martin Birgmeier
on 2016-03-06 07:20:59 UTC
(
hide
)
Description:
Patch cddl/compat/opensolaris/misc/fsshare.c for saner options parsing
Filename:
MIME Type:
Creator:
Martin Birgmeier
Created:
2016-03-06 07:20:59 UTC
Size:
1002 bytes
patch
obsolete
>--- ./cddl/compat/opensolaris/misc/fsshare.c.ORIG 2011-06-18 12:32:55.499022925 +0200 >+++ ./cddl/compat/opensolaris/misc/fsshare.c 2016-02-28 09:01:18.973606149 +0100 >@@ -129,16 +130,18 @@ > strlcpy(oldopts, shareopts, sizeof(oldopts)); > newopts[0] = '\0'; > s = oldopts; >- while ((o = strsep(&s, "-, ")) != NULL) { >+ while ((o = strsep(&s, ", ")) != NULL) { > if (o[0] == '\0') > continue; >- for (i = 0; known_opts[i] != NULL; i++) { >- len = strlen(known_opts[i]); >- if (strncmp(known_opts[i], o, len) == 0 && >- (o[len] == '\0' || o[len] == '=')) { >- strlcat(newopts, "-", sizeof(newopts)); >- break; >- } >+ if (o[0] != '-') { >+ for (i = 0; known_opts[i] != NULL; i++) { >+ len = strlen(known_opts[i]); >+ if (strncmp(known_opts[i], o, len) == 0 && >+ (o[len] == '\0' || o[len] == '=')) { >+ strlcat(newopts, "-", sizeof(newopts)); >+ break; >+ } >+ } > } > strlcat(newopts, o, sizeof(newopts)); > strlcat(newopts, " ", sizeof(newopts));
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 176449
: 167756