chiark / gitweb /
login: fix multi-seat check
[elogind.git] / src / login / multi-seat-x.c
index 8f3aacdd3a07447e7ad5ccb9576d8b4aae8b54b9..d0845e7cae2e762e12cb8e1f6aec5b3a67ca6997 100644 (file)
@@ -46,6 +46,9 @@ int main(int argc, char *argv[]) {
          * device assigned to a seat and write a configuration file
          * from it and then spawn the real X server. */
 
+        /* If this file is removed, don't forget to remove the code
+         * that invokes this in gdm and other display managers. */
+
         for (i = 1; i < argc; i++)
                 if (streq(argv[i], "-seat"))
                         seat = argv[i+1];
@@ -89,7 +92,7 @@ int main(int argc, char *argv[]) {
 
                 dn = udev_device_get_devnode(d);
 
-                if (!dn) {
+                if (dn) {
                         device_node = strdup(dn);
                         if (!device_node) {
                                 udev_device_unref(d);