Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Mar 2017 13:04:10 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Warner Losh <imp@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r315773 - head/sbin/devd
Message-ID:  <86fui1imv9.fsf@desk.des.no>
In-Reply-To: <201703230236.v2N2apvX051799@repo.freebsd.org> (Warner Losh's message of "Thu, 23 Mar 2017 02:36:51 %2B0000 (UTC)")
References:  <201703230236.v2N2apvX051799@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@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
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fui1imv9.fsf>