[pkg-cryptsetup-devel] Bug#901795: cryptsetup-initramfs: please provide documented shell functions to validate/sanitize cryptroot entries in 3rd party hook files

Guilhem Moulin guilhem at debian.org
Sat Sep 11 17:06:41 BST 2021


On Sat, 11 Sep 2021 at 17:12:17 +0200, Christoph Anton Mitterer wrote:
>           VALUE="$(printf '%b' "$VALUE")"
> ###=> is this the place where you unescape?
> ###   then the documentation is wrong, casue %b doesn't only unescape octal sequences, right?

Not wrong in my view, but incomplete and using undocumented escape
sequences yields unspecified behavior.  The intent was to mimic fstab(5)
behavior, and IIRC I noticed at the time that \xHH was supported
although not documented either.  Either way, better stick to documented
escape sequences in both files.

-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20210911/6f43b9da/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list