[Pkg-auth-maintainers] Bug#772810: Patch libpam-yubico.postinst file

Fabien Gouban fabiengouban at hotmail.com
Tue Jan 13 21:16:11 UTC 2015


Hi,



The problem is coming from the sed command present in /var/lib/dpkg/info/libpam-yubico.postinst.



The problem is the secret key string is a base64 string, so it can contain some slashes.



As slash is the separator of sed command:



sed -e "s/#DEBCONF_REPLACE/$RET/g"



sed fails because the slashes in $RET would need to be escaped.



A simple solution is to change the separator in the sed command by a pipe:

sed -e "s|#DEBCONF_REPLACE|$RET|g"

Fab
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-auth-maintainers/attachments/20150113/e9547f80/attachment.html>


More information about the Pkg-auth-maintainers mailing list