GNOME Bugzilla – Bug 412541
New Socket check does not work.
Last modified: 2007-12-15 04:39:25 UTC
After finding the NEW socket, the new socket test overrides the value of file_stat and claims to not find a socket at all. Patch attached.
Created attachment 83445 [details] [review] small fix
I just hit this bug. It causes fusa to crash on startup on my machine. The if else loop is wrong. An alternate patch to Daniel Holbach is add one word 'else', see below. Can we have this fixed please. Index: src/gdm-queue.c =================================================================== --- src/gdm-queue.c (revision 479) +++ src/gdm-queue.c (working copy) @@ -237,7 +237,7 @@ if (stat (GDM_NEW_SOCKET_FILENAME, &file_stat) == 0) strcpy (addr.sun_path, GDM_NEW_SOCKET_FILENAME); - if (stat (GDM_OLD_SOCKET_FILENAME, &file_stat) == 0) + else if (stat (GDM_OLD_SOCKET_FILENAME, &file_stat) == 0) strcpy (addr.sun_path, GDM_OLD_SOCKET_FILENAME); else g_error ("Can't find gdm socket!");
Yes-- will commit tomorrow or this weekend, or anyone with commit rights may.
Okay, checked in. Taking Craig's solution (and crediting him) merely because it's simpler and meets coding standards better. Sorry to everyone affected by this; it was most irresponsible of me to overlook this bug for so long.
This is a dupe of an older bug, so I'm marking it as such.
*** This bug has been marked as a duplicate of 408309 ***