ipaddr.subr (ab2043b81eaba0d7d7769b4a58b2b6d17bc464a3) ipaddr.subr (89498fdf4174b08bb67d684d14886539aff698b4)
1if [ ! "$_NETWORKING_IPADDR_SUBR" ]; then _NETWORKING_IPADDR_SUBR=1
2#
3# Copyright (c) 2006-2012 Devin Teske
4# All Rights Reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 153 unchanged lines hidden (view full) ---

162 "$msg" \
163 "$_ipaddr" \
164 "$hline" )"
165
166 #
167 # Loop until the user provides taint-free input.
168 #
169 while :; do
1if [ ! "$_NETWORKING_IPADDR_SUBR" ]; then _NETWORKING_IPADDR_SUBR=1
2#
3# Copyright (c) 2006-2012 Devin Teske
4# All Rights Reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 153 unchanged lines hidden (view full) ---

162 "$msg" \
163 "$_ipaddr" \
164 "$hline" )"
165
166 #
167 # Loop until the user provides taint-free input.
168 #
169 while :; do
170 eval $DIALOG \
170 local dialog_inputbox
171 dialog_inputbox=$( eval $DIALOG \
171 --title \"\$DIALOG_TITLE\" \
172 --backtitle \"\$DIALOG_BACKTITLE\" \
173 --hline \"\$hline\" \
174 --ok-label \"\$msg_ok\" \
175 --cancel-label \"\$msg_cancel\" \
176 --inputbox \"\$msg\" $size \
177 \"\$_ipaddr\" \
172 --title \"\$DIALOG_TITLE\" \
173 --backtitle \"\$DIALOG_BACKTITLE\" \
174 --hline \"\$hline\" \
175 --ok-label \"\$msg_ok\" \
176 --cancel-label \"\$msg_cancel\" \
177 --inputbox \"\$msg\" $size \
178 \"\$_ipaddr\" \
178 2> "$DIALOG_TMPDIR/dialog.inputbox.$$"
179 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
180 )
179
180 local retval=$?
181
182 local retval=$?
183 setvar DIALOG_INPUTBOX_$$ "$dialog_inputbox"
181 _input=$( f_dialog_inputstr )
182
183 #
184 # Return error status if:
185 # - User has not made any changes to the given value
186 # - User has either pressed ESC or chosen Cancel/No
187 #
188 [ "$_ipaddr" = "$_input" ] && return $FAILURE

--- 48 unchanged lines hidden ---
184 _input=$( f_dialog_inputstr )
185
186 #
187 # Return error status if:
188 # - User has not made any changes to the given value
189 # - User has either pressed ESC or chosen Cancel/No
190 #
191 [ "$_ipaddr" = "$_input" ] && return $FAILURE

--- 48 unchanged lines hidden ---