Mailinglist Archive: opensuse-bugs (5051 mails)

< Previous Next >
[Bug 751887] Hibernation failure after security patches applied.

https://bugzilla.novell.com/show_bug.cgi?id=751887

https://bugzilla.novell.com/show_bug.cgi?id=751887#c10


Marius Tomaschewski <mt@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|mt@xxxxxxxx |

--- Comment #10 from Marius Tomaschewski <mt@xxxxxxxx> 2012-03-14 15:36:14 UTC
---
It is quite simple -- the patch were not tested on systems without dhcp.

The dhcp_interfaces function does not find any interface with running dhcp
client and returns empty list and this means for savestate, read stdin:

+ case "$1" in
++ dhcp_interfaces
[...]
++ return 0
+ savestate dhcp_interfaces ''
+ '[' -n '' ']'
+ cat

See /usr/lib/pm-utils/functions:

savestate()
{
# $1 = name of state to save
# $2 (optional) State to save. If omitted, save stdin.
if [ -n "$2" ]; then
echo "$2" > "${STORAGEDIR}/state:$1"
else
cat > "${STORAGEDIR}/state:$1"
fi
}

That is, it has to be fixed to do this:

- savestate "dhcp_interfaces" "`dhcp_interfaces`"
+ _dhcp_interfaces=`dhcp_interfaces`
+ if test "$_dhcp_interfaces" != x ; then
+ savestate "dhcp_interfaces" "$_dhcp_interfaces"
+ fi

or this:

- savestate "dhcp_interfaces" "`dhcp_interfaces`"
+ dhcp_interfaces | savestate "dhcp_interfaces

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References