diff options
author | ume <ume@FreeBSD.org> | 2009-09-13 11:31:25 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2009-09-13 11:31:25 +0000 |
commit | 5a4a014df5a7434457ff003bddcf4c7af420ac23 (patch) | |
tree | f02c9ab19287a01a6eefef4b20b0d9b9ccabbd22 /sbin | |
parent | bc1fd595528fc5c944b511e2d5394bc1677871cb (diff) | |
download | FreeBSD-src-5a4a014df5a7434457ff003bddcf4c7af420ac23.zip FreeBSD-src-5a4a014df5a7434457ff003bddcf4c7af420ac23.tar.gz |
MFC r196929: Suppress an options line when no bit is on.
Approved by: re (kib)
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifgif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifgif.c b/sbin/ifconfig/ifgif.c index f9f3524..aed6382 100644 --- a/sbin/ifconfig/ifgif.c +++ b/sbin/ifconfig/ifgif.c @@ -71,6 +71,8 @@ gif_status(int s) ifr.ifr_data = (caddr_t)&opts; if (ioctl(s, GIFGOPTS, &ifr) == -1) return; + if (opts == 0) + return; printf("\toptions=%d<", opts); for (i=0; i < sizeof(gif_opts)/sizeof(gif_opts[0]); i++) { |