[DRBD-user] bug in /usr/lib/drbd/notify.sh?

Florian Haas florian.haas at linbit.com
Wed Jul 22 16:43:15 CEST 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


commit 8ac328e6f49ea825b3abcad2bdb6edbd6340e7c9
Author: Florian Haas <florian.haas at linbit.com>
Date:   Wed Jul 22 16:34:31 2009 +0200

    notify.sh: fix incorrect default value assignment.

Thanks for reporting this!

For the archives: if you get bitten by this bug, you can

1. work around by specifying the recipient explicitly in drbd.conf; or
2. grab the fixed script from
http://git.drbd.org/?p=drbd-8.3.git;a=blob_plain;f=scripts/notify.sh; or
3. apply the fix yourself (after all, it's just one character to change).

Cheers,
Florian

On 2009-07-22 15:07, Henrik Kuhn wrote:
> Hi drbd-users,
> 
> to assign default values in bash the syntax is
>   newvar=${from_var:-default_val}
> 
> Please see the diff for notify.sh:
> 13c13
> < RECIPIENT=${1:-root}
> ---
>> RECIPIENT=${1:=root}
> 
> 
> Best regards,
> Henrik



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090722/087b9f70/attachment.pgp>


More information about the drbd-user mailing list