[PATCH] src_postinst.cygpart: Sanitize binary data in bash command subst

Eric Blake eblake@redhat.com
Fri Dec 16 20:47:00 GMT 2016


On 12/16/2016 02:40 PM, Eric Blake wrote:
> bash 4.4 now warns about skipping NUL bytes in $(command), since
> command substitution is only well-formed for commands that output
> text, but NUL bytes are not text.  Silence the warning by removing
> NUL bytes from the stream before bash can see them.
> ---

As usual for me, I hit send too soon :)  I should have mentioned that
this was a patch for cygport, based on the report here:
https://cygwin.com/ml/cygwin/2016-12/msg00182.html

The patch works fine on bash 4.3.x, and shuts up the new warning present
in bash 4.4.x

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20161216/94c45c27/attachment.sig>


More information about the Cygwin-apps mailing list