aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-26 11:15:02 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-26 11:15:02 +0100
commite985f1e6283b5a81fa5499d514d05d8a3e5cfcc6 (patch)
treee025a6f7c29aa8e8013d281e9abef1dff5e8dcf4 /src
parentm make (diff)
downloadadjbacklight-e985f1e6283b5a81fa5499d514d05d8a3e5cfcc6.tar.gz
adjbacklight-e985f1e6283b5a81fa5499d514d05d8a3e5cfcc6.tar.bz2
adjbacklight-e985f1e6283b5a81fa5499d514d05d8a3e5cfcc6.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-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)