svn commit: r315773 - head/sbin/devd
Dag-Erling Smørgrav
des at des.no
Sat Mar 25 12:04:17 UTC 2017
Warner Losh <imp at FreeBSD.org> writes:
> Log:
> Implement quote escaping. String values may now contain " if you
> it is preceded by \.
If you're interested, openpam_readword(3) implements the full POSIX
shell quoting rules, including line continuations and multi-line quoted
strings, and should be fairly easy to translate to C++. There is also
an openpam_readlinev(3) which reads a full line (or more in case of line
continuations) and returns an array of words. Obviously, you'll want to
copy & adapt them rather than link devd with libpam.
contrib/openpam/lib/libpam/openpam_read{word,linev}.c
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the svn-src-head
mailing list