aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdconfig/timezone
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2013-05-14 03:21:13 +0000
committerDevin Teske <dteske@FreeBSD.org>2013-05-14 03:21:13 +0000
commitc3755aa30cbddc30cbdc26707aac2606e9cd6ec5 (patch)
tree3e3774586a73d5c2921a5c3209867c7f40baf2a1 /usr.sbin/bsdconfig/timezone
parente946bdbe31c424a173c1332165b4531a5c194406 (diff)
downloadsrc-c3755aa30cbddc30cbdc26707aac2606e9cd6ec5.tar.gz
src-c3755aa30cbddc30cbdc26707aac2606e9cd6ec5.zip
Centralize standard getopts arguments, both for convenience and to correct
a bug in which certain combinations of arguments produced unexpected results such as `-dX' (now properly produces debugging and X11), `-XS' (now properly produces X11 in secure mode), `-df-' (enables debugging when reading a script from standard-input, etc. Multi-word variations such as `-d -X', `-X -S', `-d -f-', `-d -f -', etc. also work as expected. Also tested were variations in argument order, which are now working as expected.
Notes
Notes: svn path=/head/; revision=250633
Diffstat (limited to 'usr.sbin/bsdconfig/timezone')
-rwxr-xr-xusr.sbin/bsdconfig/timezone/timezone2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/timezone/timezone b/usr.sbin/bsdconfig/timezone/timezone
index 62dc7f7c0400..226eef7dbf6b 100755
--- a/usr.sbin/bsdconfig/timezone/timezone
+++ b/usr.sbin/bsdconfig/timezone/timezone
@@ -117,7 +117,7 @@ dialog_menu_main()
#
# Process command-line arguments
#
-while getopts C:dD:ehnrsSvX flag; do
+while getopts C:ehnrsv$GETOPTS_STDARGS flag; do
case "$flag" in
C) CHROOTENV="$OPTARG";;
e) TZ_OR_FAIL=1;;