kov changed libgksu/trunk/ChangeLog, libgksu/trunk/libgksu/libgksu.c
Gustavo Noronha
kov at alioth.debian.org
Wed Jun 17 16:40:11 UTC 2009
Mensagem de log:
Make su backend work with Fedora's su.
-----
Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog 2009-05-19 01:16:35 UTC (rev 861)
+++ libgksu/trunk/ChangeLog 2009-06-17 16:40:10 UTC (rev 862)
@@ -1,3 +1,8 @@
+2009-06-17 Joshua Kwan <jkwan at vmware.com>
+
+ * libgksu/libgksu.c:
+ - Make su backend work with Fedora's su.
+
2009-05-09 Gustavo Noronha Silva <kov at debian.org>
* Release 2.0.10
Modified: libgksu/trunk/libgksu/libgksu.c
===================================================================
--- libgksu/trunk/libgksu/libgksu.c 2009-05-19 01:16:35 UTC (rev 861)
+++ libgksu/trunk/libgksu/libgksu.c 2009-06-17 16:40:10 UTC (rev 862)
@@ -1,6 +1,7 @@
/*
* Gksu -- a library providing access to su functionality
* Copyright (C) 2004-2009 Gustavo Noronha Silva
+ * Portions Copyright (C) 2009 VMware, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -2147,7 +2148,11 @@
}
strings = g_strsplit (buf, ":", 2);
- if (strings[1] && !strncmp (strings[1], " Authentication failure", 23))
+
+ /* Red Hat and Fedora use 'incorrect password'. */
+ if (strings[1] &&
+ (g_str_has_prefix(strings[1], " Authentication failure") ||
+ g_str_has_prefix(strings[1], " incorrect password")))
{
if (used_gnome_keyring)
g_set_error (error, gksu_quark,
More information about the gksu-commits
mailing list