--- gnome-volume-manager-2.17.0/src/manager.c.add-console-user-check 2006-11-07 13:01:17.000000000 -0500
+++ gnome-volume-manager-2.17.0/src/manager.c 2006-11-07 14:41:14.000000000 -0500
@@ -3185,6 +3185,7 @@
size_t n;
DIR *dir;
int vt;
+ gchar *console_path;
if (local & LOCAL_USER_CHECKED)
return (local & LOCAL_USER_FOUND);
@@ -3210,7 +3211,14 @@
if (!(local & LOCAL_USER_FOUND)) {
setutent ();
-
+ console_path = g_build_filename (GVM_CONSOLE_AUTH_DIR, user, NULL);
+ if (g_file_test (console_path, G_FILE_TEST_EXISTS)) {
+ g_free (console_path);
+ local = LOCAL_USER_FOUND;
+ }
+
+ g_free (console_path);
+
while (!(local & LOCAL_USER_FOUND) && (utmp = getutent ())) {
if (utmp->ut_type != USER_PROCESS || strncmp (utmp->ut_user, user, n) != 0)
continue;