Right, it's logical to clean up the icon as well. (Guest users typically don't bother with icons, which explains why I missed it.)
Maybe checking errno would provide sufficient safety? errno = 0; pwent = getpwnam (name); if (pwent == NULL && errno == 0) { -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1259562 Title: Old guest users pollute accountsservice To manage notifications about this bug go to: https://bugs.launchpad.net/accountsservice/+bug/1259562/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs