From owner-svn-src-all@freebsd.org  Sat Mar 25 12:04:17 2017
Return-Path: <owner-svn-src-all@freebsd.org>
Delivered-To: svn-src-all@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DF9ED1DA46;
 Sat, 25 Mar 2017 12:04:17 +0000 (UTC) (envelope-from des@des.no)
Received: from smtp.des.no (smtp.des.no [194.63.250.102])
 by mx1.freebsd.org (Postfix) with ESMTP id 3907D1FDC;
 Sat, 25 Mar 2017 12:04:16 +0000 (UTC) (envelope-from des@des.no)
Received: from desk.des.no (smtp.des.no [194.63.250.102])
 by smtp.des.no (Postfix) with ESMTP id 4555DDCB4;
 Sat, 25 Mar 2017 12:04:10 +0000 (UTC)
Received: by desk.des.no (Postfix, from userid 1001)
 id 5D65343498; Sat, 25 Mar 2017 13:04:10 +0100 (CET)
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
References: <201703230236.v2N2apvX051799@repo.freebsd.org>
Date: Sat, 25 Mar 2017 13:04:10 +0100
In-Reply-To: <201703230236.v2N2apvX051799@repo.freebsd.org> (Warner Losh's
 message of "Thu, 23 Mar 2017 02:36:51 +0000 (UTC)")
Message-ID: <86fui1imv9.fsf@desk.des.no>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-BeenThere: svn-src-all@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "SVN commit messages for the entire src tree \(except for &quot;
 user&quot; and &quot; projects&quot; \)" <svn-src-all.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-all>,
 <mailto:svn-src-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-all/>
List-Post: <mailto:svn-src-all@freebsd.org>
List-Help: <mailto:svn-src-all-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-all>,
 <mailto:svn-src-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 25 Mar 2017 12:04:17 -0000

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