summaryrefslogtreecommitdiff
path: root/sbin/wsconsctl/wsconsctl.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-07-19 15:34:46 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-07-19 15:34:46 +0000
commit82bfe7a48923cf25b755d2bb0216f10af32dc22b (patch)
treeb0644414d16084689f3e8bf4b127d030d30c77c1 /sbin/wsconsctl/wsconsctl.c
parentacec178fb929eb94476ecbb513762ee3780a9033 (diff)
if variable has a NOAUTO flag set; skip printing.
requested & diff tested by david@ ok miod@
Diffstat (limited to 'sbin/wsconsctl/wsconsctl.c')
-rw-r--r--sbin/wsconsctl/wsconsctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c
index c772c88024f..e5833b62028 100644
--- a/sbin/wsconsctl/wsconsctl.c
+++ b/sbin/wsconsctl/wsconsctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsctl.c,v 1.23 2009/07/15 21:38:16 martynas Exp $ */
+/* $OpenBSD: wsconsctl.c,v 1.24 2009/07/19 15:34:45 martynas Exp $ */
/* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */
/*-
@@ -214,7 +214,7 @@ main(int argc, char *argv[])
f->flags |= FLG_SET;
putval = (*sw->putval)(sw->name, sw->fd);
f->flags &= ~FLG_SET;
- if (putval != 0 || f->flags & FLG_DEAD)
+ if (putval != 0 || f->flags & (FLG_DEAD | FLG_NOAUTO))
continue;
if (f->flags & FLG_WRONLY) {
pr_field(sw->name, f, setsep);