summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2016-01-31 21:14:31 +0000
committerdteske <dteske@FreeBSD.org>2016-01-31 21:14:31 +0000
commit37617f7cb005082f23a6727fb7fdf8740ea668d9 (patch)
tree3711d41769b4ea40354f0b76358ccd68e7e5061d /usr.sbin/bsdconfig
parent9813c740a6fa121e9da1a79356aa50992f82aaa2 (diff)
downloadFreeBSD-src-37617f7cb005082f23a6727fb7fdf8740ea668d9.zip
FreeBSD-src-37617f7cb005082f23a6727fb7fdf8740ea668d9.tar.gz
Reset OPTIND to 1 in f_device_find()
Diffstat (limited to 'usr.sbin/bsdconfig')
-rw-r--r--usr.sbin/bsdconfig/share/device.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/share/device.subr b/usr.sbin/bsdconfig/share/device.subr
index d95684d..97c3ecd 100644
--- a/usr.sbin/bsdconfig/share/device.subr
+++ b/usr.sbin/bsdconfig/share/device.subr
@@ -1,6 +1,6 @@
if [ ! "$_DEVICE_SUBR" ]; then _DEVICE_SUBR=1
#
-# Copyright (c) 2012-2014 Devin Teske
+# Copyright (c) 2012-2016 Devin Teske
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -1032,7 +1032,7 @@ f_device_is_active()
#
f_device_find()
{
- local OPTIND OPTARG flag only_one=
+ local OPTIND=1 OPTARG flag only_one=
while getopts 1 flag; do
case "$flag" in
1) only_one=1 ;;
OpenPOWER on IntegriCloud