Univention Bugzilla – Bug 40479
missing escapes in "univention-lib"
Last modified: 2018-04-14 13:29:32 CEST
We might need to backport the fix for "is_ucr_true" for UCS 4.0 too: +++ This bug was initially created as a clone of Bug #40031 +++ === Bug #40031 Comment 2 === When executing some univention commands the following line appears in the terminal: tr: misaligned [:upper:] and/or [:lower:] construct The problem seems to be in the function " is_ucr_true" in the file /usr/share/univention-lib/ucr.sh. === Bug #40031 Comment 9 === Note: This is the german translation of the error message: tr: fehlerhaft positioniertes [:upper:]- und/oder [:lower:]-Konstrukt We have seen this at Ticket#2016011921000162 on one UCS 4.0-4 DC Slave (errata 386 at the time of analysis), where is_ucr_true failed with this message in a joinscript. As a result it took the wrong if/then/else branch.
This hit me again today on a school DC, which by coincidence/lazy naming had a file called "p" in the /root/ directory. Server changed its machine password although this is disabled via UCR: root@dc601:~# ucr get server/password/change false root@dc601:~# . /usr/share/univention-lib/all.sh root@dc601:~# eval "$(/usr/sbin/univention-config-registry shell)" root@dc601:~# is_ucr_true server/password/change tr: fehlerhaft positioniertes [:upper:]- und/oder [:lower:]-Konstrukt root@dc601:~# echo $? 2 root@dc601:~# ls -l insgesamt 144 [...] -rw-r--r-- 1 root root 46553 Feb 15 17:53 p [...]
UCS-4.0 is no longer maintained; the bug is fixed in UCS-4.1. Closing this request for back-port as WONT-FIX.