on_ac_power fails if the path contains a whitespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powermgmt-base (Debian) |
Fix Released
|
Unknown
|
|||
powermgmt-base (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
powermgmt-base: 1.33
on_ac_power fails if the path contains a whitespace, solution is attached as patch.
before patch:
~# sh -x /usr/bin/
+ set -e
+ OFF_LINE_P=no
+ [ -d /sys/class/
+ test -d /sys/class/
+ test -r /sys/class/
+ cat /sys/class/
cat: '/sys/class/
cat: 'Rev:PAACFS00-
+ type=
1
after patch:
~# sh -x /usr/bin/
+ set -e
+ OFF_LINE_P=no
+ [ -d /sys/class/
+ test -d /sys/class/
+ test -r /sys/class/
+ cat /sys/class/
+ type=Battery
+ [ no = yes ]
+ [ -d /proc/acpi/
+ [ -r /proc/pmu/info ]
+ [ -r /proc/apm ]
+ exit 255
255
Changed in powermgmt-base (Ubuntu): | |
importance: | Undecided → Medium |
Changed in powermgmt-base (Debian): | |
status: | Unknown → New |
Changed in powermgmt-base (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in powermgmt-base (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.