summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/usermgmt
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/usermgmt
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/usermgmt')
-rw-r--r--usr.sbin/bsdconfig/usermgmt/share/user_input.subr12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bsdconfig/usermgmt/share/user_input.subr b/usr.sbin/bsdconfig/usermgmt/share/user_input.subr
index 8b356b6..7fa9d79 100644
--- a/usr.sbin/bsdconfig/usermgmt/share/user_input.subr
+++ b/usr.sbin/bsdconfig/usermgmt/share/user_input.subr
@@ -627,7 +627,7 @@ f_dialog_input_change()
local secs="$_input"
{ f_isinteger "$secs" && [ $secs -gt 0 ]; } || secs=
_input_date=$( date -j -f "%s" -- "$secs" \
- "+%d %m %Y" 2> /dev/null )
+ "+%d %m %Y" 2>&- )
calendar_size=$( f_dialog_calendar_size \
"$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" \
@@ -654,7 +654,7 @@ f_dialog_input_change()
_input_time=
[ "$secs" ] && _input_time=$( date -j \
- -f %s -- "$_input" "+%H %M %S" 2> /dev/null )
+ -f %s -- "$_input" "+%H %M %S" 2>&- )
timebox_size=$( f_dialog_timebox_size \
"$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" \
@@ -682,7 +682,7 @@ f_dialog_input_change()
_input=$( date \
-j -f "%d/%m/%Y %T" \
-- "$ret_date $ret_time" \
- +%s 2> /dev/null )
+ +%s 2>&- )
f_dprintf "_input=[$_input]"
break ;;
@@ -852,7 +852,7 @@ f_dialog_input_expire()
local secs="$_input"
{ f_isinteger "$secs" && [ $secs -gt 0 ]; } || secs=
_input_date=$( date -j -f "%s" -- "$secs" \
- "+%d %m %Y" 2> /dev/null )
+ "+%d %m %Y" 2>&- )
calendar_size=$( f_dialog_calendar_size \
"$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" \
@@ -879,7 +879,7 @@ f_dialog_input_expire()
_input_time=
[ "$secs" ] && _input_time=$( date -j \
- -f %s -- "$_input" "+%H %M %S" 2> /dev/null )
+ -f %s -- "$_input" "+%H %M %S" 2>&- )
timebox_size=$( f_dialog_timebox_size \
"$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" \
@@ -906,7 +906,7 @@ f_dialog_input_expire()
_input=$( date \
-j -f "%d/%m/%Y %T" \
-- "$ret_date $ret_time" \
- +%s 2> /dev/null )
+ +%s 2>&- )
f_dprintf "_input=[$_input]"
break ;;
OpenPOWER on IntegriCloud