Public bug reported:

Binary package hint: x11-common

the scripts x11-common.config loops with error message "Invalid nice
value..."

the problem seems to come from the function

validate_nice_value(){
...
 expr "$1" - "$1" > /dev/null 2>&1
  if [ $? -ne 1 ]; then
    # now check for valid range
...
}

from the man page of expr, expr returns 1 if the result is 0 or null (0 if not 
null and 2 in case of syntax error)
so here, one should test if $? -eq 1, as the result of the expression if 
syntactically valid would be 0.

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
x11-common fails to configure
https://launchpad.net/bugs/90365

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to