summaryrefslogtreecommitdiff
blob: 08010c2cd86c68883d8ff88846860994ce2710a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: src/gdm-queue.c
===================================================================
--- src/gdm-queue.c	(revision 435)
+++ 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!");