From dcaac8bc22fd21877455ff6b96173624cbcd4e60 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Thu, 7 Oct 2004 02:17:01 +0000 Subject: [PATCH] * m4/libtool.m4 (_LT_FORMAT_COMMENT): Shell meta-characters in _LT_DECL descriptions were not being escaped before injection into TAG CONFIG here documents in config.status. --- ChangeLog | 6 ++++++ m4/libtool.m4 | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ebd4aec9a..bf045a5e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-07 Gary V. Vaughan + + * m4/libtool.m4 (_LT_FORMAT_COMMENT): Shell meta-characters in + _LT_DECL descriptions were not being escaped before injection into + TAG CONFIG here documents in config.status. + 2004-10-06 Peter O'Gorman * m4/libtool.m4 (_LT_PROG_CXX, _LT_PROG_F77): New macros to work diff --git a/m4/libtool.m4 b/m4/libtool.m4 index e158528a7..004553e52 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -261,7 +261,8 @@ _LT_CONFIG_LIBTOOL_INIT([$2]) # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ -m4_bpatsubst([$1], [^ *], [# ])]m4_bmatch([$1], [[!?.]$], [], [.]) +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) -- 2.47.2