diff options
-rw-r--r-- | src/users-service-dbus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c index 8a050fc..0191e6d 100644 --- a/src/users-service-dbus.c +++ b/src/users-service-dbus.c @@ -26,7 +26,6 @@ #include <glib.h> #include <errno.h> -#include <string.h> #include <pwd.h> /* getpwuid() */ @@ -805,7 +804,7 @@ is_guest_username (const char * username) if (!g_strcmp0 (username, "guest")) return TRUE; - if (username && (strlen(username)==12) && !memcmp(username,"guest-",6)) + if (username && g_str_has_prefix (username, "guest-")) return TRUE; return FALSE; |