summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2011-03-29 00:12:39 -0400
committerRay Strode <rstrode@redhat.com>2011-03-29 00:12:39 -0400
commit333139ea9bbcaa4d2f7376b14404452cadf93049 (patch)
tree4bd4ddedce5d81116a3480ce387941ede6f86b07
parent56fe7600d477cd759299e9d3e1cb228f33330a79 (diff)
daemon: use same rules for parsing booleans from gdm config as gdm
-rw-r--r--src/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.c b/src/daemon.c
index 755ada5..c6c2115 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -1371,7 +1371,7 @@ load_autologin (Daemon *daemon,
g_free (string);
return FALSE;
}
- if (g_strcmp0 (string, "True") == 0) {
+ if (string != NULL && (g_ascii_strcasecmp (string, "true") == 0 || strcmp (string, "1") == 0)) {
*enabled = TRUE;
}
else {