Hello Christian, Christian Seiler [2011-09-22 16:29 +0200]: > I've recently stumbled upon to a problem with upowerd. Under linux, > regardless of the exit code of /usr/bin/pm-is-supported, it will always > set CanSuspend and CanHibernate to true due to a logic error in > up_backend_supports_sleep_state in src/linux/up-backend.c: The 'ret' > variable is re-used for the return code without being re-initialized to > false after the call to g_spawn_command_line_sync.
Nice catch, thanks! I committed a slightly shorter version: http://cgit.freedesktop.org/upower/commit/?id=ff23a9c6e229cd8a2c4226fdc281ab5853d6da35 Thanks, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
signature.asc
Description: Digital signature
_______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel