Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / .werks / 3650
blob793a6671b33093a359e5c5ffc836daed7a4cfddc
1 Title: Fixed bash versionitis, unbreaking cached check results.
2 Level: 1
3 Component: checks
4 Class: fix
5 Compatible: compat
6 State: unknown
7 Version: 1.4.0i2
8 Date: 1476797337
10 Our shebang lines in scripts explicitly state which bash they want, and the
11 bash instances we start from the script should better use the exact same
12 version.  If there is a version mismatch, lots of funny things can happen,
13 the most prominent being that caching check results doesn't work anymore
14 (e.g.  when using MRPE).  This is caused by the bash fixes for the
15 Shellshock vulnerability which change (among other things) how functions are
16 exported to sub-shells.  The consequence is that a pre-Shellshock bash
17 doesn't see the functions exported by a post-Shellshock bash, and vice
18 versa.  This setup can happen when the shebang and the user's PATH have
19 different ideas about which bash to use.
20     
21 To fix this, we use the same absolute path for starting the bash
22 sub-processes as the one stated in the corresponding shebang.