summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/console
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2012-09-21 01:36:20 +0000
committerdteske <dteske@FreeBSD.org>2012-09-21 01:36:20 +0000
commit36137540d6046459e5a8f5403fe04c12101b75df (patch)
tree64908c3644f93810ed9501a5e081ad2a98852d45 /usr.sbin/bsdconfig/console
parentf628c47944e7370c8d8c16cdcc6f98871a48be02 (diff)
downloadFreeBSD-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/console')
-rwxr-xr-xusr.sbin/bsdconfig/console/ttys4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/console/ttys b/usr.sbin/bsdconfig/console/ttys
index fcf45ef..8ec55d8 100755
--- a/usr.sbin/bsdconfig/console/ttys
+++ b/usr.sbin/bsdconfig/console/ttys
@@ -117,8 +117,8 @@ ttys_set_type()
# with 0600 permissions -- change the permissions and ownership to
# match ttys(5) before we write it out and mv(1) it into place).
#
- local mode="$( stat -f '%#Lp' "$ETC_TTYS" 2> /dev/null )"
- local owner="$( stat -f '%u:%g' "$ETC_TTYS" 2> /dev/null )"
+ local mode="$( stat -f '%#Lp' "$ETC_TTYS" 2>&- )"
+ local owner="$( stat -f '%u:%g' "$ETC_TTYS" 2>&- )"
f_quietly chmod "${mode:-0644}" "$tmpfile"
f_quietly chown "${owner:-root:wheel}" "$tmpfile"
OpenPOWER on IntegriCloud