From 6ac386855c8395029c76603b7d2542812afae0d8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 25 Sep 2018 01:02:41 +0300 Subject: [PATCH] logind: fix blacklist/whitelist confusion in comment (#10165) Triggered by this: https://github.com/systemd/systemd/commit/602a41c22ac2df33b4b5e5083719c1cfaf58acf9#r30575293 --- src/login/logind-core.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/login/logind-core.c b/src/login/logind-core.c index 32e1c34..8750608 100644 --- a/src/login/logind-core.c +++ b/src/login/logind-core.c @@ -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; -- 2.7.4