1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

logind: fix blacklist/whitelist confusion in comment (#10165)

Triggered by this:

602a41c22a (r30575293)
This commit is contained in:
Lennart Poettering 2018-09-25 01:02:41 +03:00 committed by Yu Watanabe
parent 7fe96758d1
commit 6ac386855c

View 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;