Red Hat Bugzilla – Bug 153202
startkde gets wrong field from space_tmp with finnish and some other languages too
Last modified: 2007-11-30 17:11:03 EST
Description of problem:
In script /usr/bin/starkde I found lines
space_tmp=`df /tmp | xargs | cut -d" " -f11`
homedir_mount=`df "$HOME" | xargs | cut -d" " -f8`
and then they are called in same script:
if [ $space_tmp -lt 50 ]; then <- line 24
if [ $space_home -lt 25 ]; then <- line 29
and that causes error lines in .xession-errors file in home directory:
/usr/bin/startkde: line 24: [: 6%: integer expression expected
/usr/bin/startkde: line 29: [: 40%: integer expression expected
I tried to execute space_tmp manually and that returned just 6%. Not an integer!
That occurred in Fedora Core 2 system and Ubuntu. Slackware linux works ok.
Version-Release number of selected component (if applicable):
Fedora Core 2, kernel 2.6.10-1.771_FC2
I tried manually df /tmp | xargs | cut -d" " -f11 and it occurred every time.
Steps to Reproduce:
1. df /tmp | xargs | cut -d" " -f11
6% on my system just now.
Seems to be that startkde script matches wrong field with -f11 or -f8 with finnish
language fedora and some other languages too. Coud be better if there is not such
assumptions of field places and orders.
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.
it's now fixed in our CVS. I will build new kdebase including this fix in
FC5 update and rawhide soon. Thanks for your report.