[Bug 168158] [zfs] incorrect parsing of sharenfs options in zfs (fsshare.c)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jun 29 17:40:05 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=168158
eborisch+FreeBSD at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eborisch+FreeBSD at gmail.com
--- Comment #3 from eborisch+FreeBSD at gmail.com ---
Created attachment 158168
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158168&action=edit
Patch to support hyphenated host names in sharenfs zfs property.
Simple patch that only ignores leading hyphens in options.
With this change:
'-ro,a-server -alldirs' -> '-ro a-server -alldirs'
instead of (current behavior):
'-ro,a-server -alldirs' -> '-ro a server -alldirs'
Changed by removing '-' from strsep() call, and handling (skipping) hyphen if
first character immediately after strsep() call.
All test cases listed immediately prior to the code still work; I'm not aware
of any supported forms that are broken by this change.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list