diff options
author | nsayer <nsayer@FreeBSD.org> | 2000-07-23 04:49:43 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2000-07-23 04:49:43 +0000 |
commit | 90b09c328d3d2e0d53f3ad25160331d40536102d (patch) | |
tree | 29019d2828eaf0f5ce228d034546c7410d4fefb5 /usr.sbin/apm/apm.c | |
parent | 3c436730467ce56510034e5f40159c874ead2445 (diff) | |
download | FreeBSD-src-90b09c328d3d2e0d53f3ad25160331d40536102d.zip FreeBSD-src-90b09c328d3d2e0d53f3ad25160331d40536102d.tar.gz |
apm -d also needs a writable file descriptor.
Diffstat (limited to 'usr.sbin/apm/apm.c')
-rw-r--r-- | usr.sbin/apm/apm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index e64dc7b..9a779bb 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -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); |