apm -d also needs a writable file descriptor.

This commit is contained in:
nsayer 2000-07-23 04:49:43 +00:00
parent 3c43673046
commit 90b09c328d

View File

@ -412,7 +412,7 @@ main(int argc, char *argv[])
argv += optind;
}
finish_option:
if (haltcpu != -1 || enable != -1 || delta || sleep || standby)
if (haltcpu != -1 || enable != -1 || display != -1 || delta || sleep || standby)
fd = open(APMDEV, O_RDWR);
else
fd = open(APMDEV, O_RDONLY);