diff options
author | dteske <dteske@FreeBSD.org> | 2012-09-21 01:36:20 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2012-09-21 01:36:20 +0000 |
commit | 36137540d6046459e5a8f5403fe04c12101b75df (patch) | |
tree | 64908c3644f93810ed9501a5e081ad2a98852d45 /usr.sbin/bsdconfig/networking/share/netmask.subr | |
parent | f628c47944e7370c8d8c16cdcc6f98871a48be02 (diff) | |
download | FreeBSD-src-36137540d6046459e5a8f5403fe04c12101b75df.zip FreeBSD-src-36137540d6046459e5a8f5403fe04c12101b75df.tar.gz |
Replace redirections to /dev/null with "close file-descriptor" syntax (>&-).
Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)
Diffstat (limited to 'usr.sbin/bsdconfig/networking/share/netmask.subr')
-rw-r--r-- | usr.sbin/bsdconfig/networking/share/netmask.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/networking/share/netmask.subr b/usr.sbin/bsdconfig/networking/share/netmask.subr index 2f2b378..a502dc4 100644 --- a/usr.sbin/bsdconfig/networking/share/netmask.subr +++ b/usr.sbin/bsdconfig/networking/share/netmask.subr @@ -46,7 +46,7 @@ f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr f_ifconfig_netmask() { local interface="$1" octets - octets=$( ifconfig "$interface" 2> /dev/null | awk \ + octets=$( ifconfig "$interface" 2>&- | awk \ ' BEGIN { found = 0 } ( $1 == "inet" ) \ |