suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT39655 Status: Closed

$ACTION LEAK OUT FROM `DB2PROFILE`

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
There is a small bug in `db2profile`. Basically in the
`AddRemoveString` function, all other variables are unset except
 for "action", causing `$action` to leak out and wreak havoc on
users' script, which probably defined another `action` variable
locally.
----------------------------------------------------------------
---------
AddRemoveString()
{
...
addrm_str=$2 #The new path to be used
action=$3 #Action: a -> add, r -> remove
if [ "X${action?}" != "Xa" -a "X${action?}" != "Xr" ]; then
return 0 # return without doing anything
fi
...
unset var addrm_str awkval newval
}
Problem Summary:
The problem is fixed on Db2 v11.1 Mod4 FP5.
Local Fix:
Modify the last line to `unset var addrm_str action awkval
newval`:
$ diff db2profile.20180810 db2profile
113c113
<    unset var addrm_str awkval newval
---
>    unset var addrm_str action awkval newval
Solution
Workaround
The problem is fixed on Db2 v11.1 Mod4 FP5.
Comment
Upgrade to Db2 v11.1 Mod4 FP5.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
29.01.2022
29.01.2022
29.01.2022
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)