aboutsummaryrefslogtreecommitdiffstats
path: root/src/adjbacklight.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/adjbacklight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adjbacklight.c b/src/adjbacklight.c
index 2aee72e..fcb1ffd 100644
--- a/src/adjbacklight.c
+++ b/src/adjbacklight.c
@@ -453,7 +453,7 @@ int main(int argc, char** argv)
while ((ent = readdir(dir)))
{
device = ent->d_name;
- if (all || (strstr(device, forbidden) != forbidden))
+ if (all || (strstr(device, forbidden) != device))
if (*device && (*device != '.'))
{
if (get)