+ /* encrypted swap? */ + if (!daemon->priv->hibernate_has_encrypted_swap) { + error = g_error_new (DKP_DAEMON_ERROR, + DKP_DAEMON_ERROR_GENERAL, + "Swap space is encrypted"); + g_error_free (error_local); + dbus_g_method_return_error (context, error); + goto out; + } +
The check is wrong. hibernate_has_encrypted_swap is TRUE when swap is encrypted, FALSE otherwise. That's what is causing the error from comment 12.
+ /* encrypted swap? */ >priv-> hibernate_ has_encrypted_ swap) { ERROR_GENERAL, method_ return_ error (context, error);
+ if (!daemon-
+ error = g_error_new (DKP_DAEMON_ERROR,
+ DKP_DAEMON_
+ "Swap space is encrypted");
+ g_error_free (error_local);
+ dbus_g_
+ goto out;
+ }
+
The check is wrong. hibernate_ has_encrypted_ swap is TRUE when swap is encrypted, FALSE otherwise. That's what is causing the error from comment 12.