logind: fix blacklist/whitelist confusion in comment (#10165)
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Sep 2018 22:02:41 +0000 (01:02 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 24 Sep 2018 22:02:41 +0000 (07:02 +0900)
Triggered by this:

https://github.com/systemd/systemd/commit/602a41c22ac2df33b4b5e5083719c1cfaf58acf9#r30575293

src/login/logind-core.c

index 32e1c34..8750608 100644 (file)
@@ -588,12 +588,10 @@ static int manager_count_external_displays(Manager *m) {
                 if (sd_device_get_sysname(d, &nn) < 0)
                         continue;
 
-                /* Ignore internal displays: the type is encoded in
-                 * the sysfs name, as the second dash separated item
-                 * (the first is the card name, the last the connector
-                 * number). We implement a whitelist of external
-                 * displays here, rather than a whitelist, to ensure
-                 * we don't block suspends too eagerly. */
+                /* Ignore internal displays: the type is encoded in the sysfs name, as the second dash separated item
+                 * (the first is the card name, the last the connector number). We implement a blacklist of external
+                 * displays here, rather than a whitelist of internal ones, to ensure we don't block suspends too
+                 * eagerly. */
                 dash = strchr(nn, '-');
                 if (!dash)
                         continue;