diff options
author | dteske <dteske@FreeBSD.org> | 2012-09-21 19:03:25 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2012-09-21 19:03:25 +0000 |
commit | 5bd90f70aeb197b19ce714af4c1a59070b9dc689 (patch) | |
tree | d041ecdde663dcb11b07368b0990746b6b9decd7 /usr.sbin/bsdconfig/console | |
parent | be9906f96c7ede292408ef02eae1e83ce8646c13 (diff) | |
download | FreeBSD-src-5bd90f70aeb197b19ce714af4c1a59070b9dc689.zip FreeBSD-src-5bd90f70aeb197b19ce714af4c1a59070b9dc689.tar.gz |
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)
Diffstat (limited to 'usr.sbin/bsdconfig/console')
-rwxr-xr-x | usr.sbin/bsdconfig/console/ttys | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/console/ttys b/usr.sbin/bsdconfig/console/ttys index 8ec55d8..fcf45ef 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" |