From 82bfe7a48923cf25b755d2bb0216f10af32dc22b Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Sun, 19 Jul 2009 15:34:46 +0000 Subject: if variable has a NOAUTO flag set; skip printing. requested & diff tested by david@ ok miod@ --- sbin/wsconsctl/wsconsctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/wsconsctl/wsconsctl.c') 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); -- cgit v1.2.3