[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#584520: initramfs-tools: copy_exec hook function may exit with a non-zero return value in non-verbose mode



tags 584520 + fixed pending
thanks

* Gerrit Keller <gerrit.keller@gmail.com> [Fre Jun 04, 2010 at 11:23:21 +0200]:

> copy_exec hook function may exit with a non-zero return value in non-verbose
> mode

> The copy_exec hook function could exit with a return value of 1 in non-verbose
> mode. This happens due to the last command being
> [ "${verbose}" = "y" ] && echo "Adding library ${x}"
> whose return value will be used as the return value for the function. This
> makes hook scripts with a 'set -e' statement abort after the call (see bug
> #578065).
> I've attached a trivial patch which fixes the problem.

Good catch, thanks. Applied and will be uploaded soon.

regards,
-mika-

Attachment: signature.asc
Description: Digital signature


Reply to: