Beware: I really haven't tested this *at all* beyond building it, and can't reproduce the error condition myself anyway. Make sure you have a way to roll back to the old version of consolekit, as it's entirely possible that it will e.g. segfault as soon as this error occurs. I ran it past Chris Coulson as a sanity check but haven't sent it to anyone else yet.
Can people affected by this bug have a go at the version of consolekit in this PPA?
https://launchpad.net/~cjwatson/+archive/ppa
Beware: I really haven't tested this *at all* beyond building it, and can't reproduce the error condition myself anyway. Make sure you have a way to roll back to the old version of consolekit, as it's entirely possible that it will e.g. segfault as soon as this error occurs. I ran it past Chris Coulson as a sanity check but haven't sent it to anyone else yet.
Patch attached.