[libvirt] [sec-notice PATCH 2/2] scripts: require bash for bashisms

Eric Blake eblake at redhat.com
Wed Jan 22 13:41:43 UTC 2014


On 01/22/2014 03:37 AM, Daniel P. Berrange wrote:
> On Tue, Jan 21, 2014 at 11:37:16AM -0700, Eric Blake wrote:
>> Use of ${BASH_SOURCE[0]} is a syntax error in dash.
>> Use of `` is pointless when we know we are in bash.
>>
>> * scripts/lsn2text: Make more robust.
>> * scripts/lsn2html: Likewise.
>> * scripts/lsn2indexhtml: Likewise.
>> * scripts/lsn2index: Likewise.
>>
>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>>  scripts/lsn2html      | 4 ++--
>>  scripts/lsn2index     | 4 ++--
>>  scripts/lsn2indexhtml | 4 ++--
>>  scripts/lsn2text      | 4 ++--
>>  4 files changed, 8 insertions(+), 8 deletions(-)
> 
> ACK, unless there's a better way to write it in general
> shell without $BASE_SOURCE ?

Probably possible; I was just going with the path of least resistance.
If you want me to respin this to be portable to dash, I can spend the
time on that.

Also, I noticed that the web pages at http://security.libvirt.org don't
seem to be regenerated, even though it's been more than an hour since I
pushed - are we missing a cron job somewhere, in relation to the claim
made in the README?

-- 
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://listman.redhat.com/archives/libvir-list/attachments/20140122/271b0382/attachment-0001.sig>


More information about the libvir-list mailing list