aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdconfig/console
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2012-09-21 19:03:25 +0000
committerDevin Teske <dteske@FreeBSD.org>2012-09-21 19:03:25 +0000
commitfb7d723e6bb1b81ac1e34e86be13e9806247a2c3 (patch)
treed041ecdde663dcb11b07368b0990746b6b9decd7 /usr.sbin/bsdconfig/console
parent777813c555e094231220c527b5cd7c33463ea03a (diff)
downloadsrc-fb7d723e6bb1b81ac1e34e86be13e9806247a2c3.tar.gz
src-fb7d723e6bb1b81ac1e34e86be13e9806247a2c3.zip
Reverse SVN r240770 -- jilles@ made a suggestion that allowed us to redesign
our embedded rescue environment to support /dev/null making r240770 obsolete. Reviewed by: jilles, adrian (co-mentor) Approved by: jilles, adrian (co-mentor)
Notes
Notes: svn path=/head/; revision=240783
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 8ec55d81e2d7..fcf45efe63b6 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>&- )"
- local owner="$( stat -f '%u:%g' "$ETC_TTYS" 2>&- )"
+ local mode="$( stat -f '%#Lp' "$ETC_TTYS" 2> /dev/null )"
+ local owner="$( stat -f '%u:%g' "$ETC_TTYS" 2> /dev/null )"
f_quietly chmod "${mode:-0644}" "$tmpfile"
f_quietly chown "${owner:-root:wheel}" "$tmpfile"