From: Chuck Lever Date: Fri, 28 Sep 2007 20:36:30 +0000 (-0400) Subject: mount.nfs: add new string tokenizer facility X-Git-Tag: nfs-utils-1-1-1~35 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=af5939d15a41b337cc499a04fe4001a5cd51fdce;hp=af5939d15a41b337cc499a04fe4001a5cd51fdce mount.nfs: add new string tokenizer facility To quote the strtok(3) man page: "Avoid using these functions." OK. We've created our own. The main reason for this is that strtok(3) doesn't handle quoted delimiters at all. We need to handle this: context="foo,bar" where 'context' is a single mount option that sets a token string that possibly uses the same delimiter that the mount command uses to separate options (that is, a comma). Signed-off-by: Chuck Lever Signed-off-by: Neil Brown ---