diff options
author | 2009-07-19 15:34:45 +0000 | |
---|---|---|
committer | 2009-07-19 15:34:45 +0000 | |
commit | 80c6a312919585c9f7728c804463c62fc0179fa5 (patch) | |
tree | d62e810a67eabfb6d175ee248805325f29c5c1d7 | |
parent | missing va_end in pppd; ok millert@ (diff) | |
download | wireguard-openbsd-80c6a312919585c9f7728c804463c62fc0179fa5.tar.xz wireguard-openbsd-80c6a312919585c9f7728c804463c62fc0179fa5.zip |
if variable has a NOAUTO flag set; skip printing.
requested & diff tested by david@
ok miod@
-rw-r--r-- | sbin/wsconsctl/wsconsctl.c | 4 |
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); |