diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-01 23:13:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-01 23:13:54 +0000 |
commit | e5182587c58d21d2becc3ab81ff2a22d3f57653a (patch) | |
tree | 6b3a5fb90059c542faafda4e2d4dcf90e7da0f11 | |
parent | 4dedca54612c0cf67038d99e051929d85030adbf (diff) |
Do not attempt to print parameters which turned out to be dead; fixes PR#5066.
-rw-r--r-- | sbin/wsconsctl/wsconsctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c index c9b47bff5d7..d6d70dadeb3 100644 --- a/sbin/wsconsctl/wsconsctl.c +++ b/sbin/wsconsctl/wsconsctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconsctl.c,v 1.16 2004/08/09 18:39:22 deraadt Exp $ */ +/* $OpenBSD: wsconsctl.c,v 1.17 2006/04/01 23:13:53 miod Exp $ */ /* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */ /*- @@ -166,6 +166,8 @@ main(int argc, char *argv[]) } f->flags |= FLG_GET; (*sw->getval)(sw->name, sw->fd); + if (f->flags & FLG_DEAD) + continue; pr_field(sw->name, f, sep); continue; } |