To reproduce: configure with --enable-console-auth-dir=/var/run/console and without systemd
Expected result: at_console rules check for /var/run/console/smcv which is created by ConsoleKit
Actual result: at_console rules check for /var/run/consolesmcv which, oddly enough, doesn't exist
This is because _dbus_user_at_console() blindly assumes that DBUS_CONSOLE_AUTH_DIR ends with "/", and appends the username without a separator. The default *does* end with "/", hiding this bug.
It should append "/" before the username if there isn't already one there.
Noticed by ioni when Arch tried to move to using /run/console (as opposed to /run/console/ which would have worked).
Fixed in git for 1.6.4, 1.7.0; thanks to Dave Reisner for the patch.