Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2016 21:14:31 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295100 - head/usr.sbin/bsdconfig/share
Message-ID:  <201601312114.u0VLEVIo000925@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sun Jan 31 21:14:31 2016
New Revision: 295100
URL: https://svnweb.freebsd.org/changeset/base/295100

Log:
  Reset OPTIND to 1 in f_device_find()

Modified:
  head/usr.sbin/bsdconfig/share/device.subr

Modified: head/usr.sbin/bsdconfig/share/device.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/device.subr	Sun Jan 31 17:32:58 2016	(r295099)
+++ head/usr.sbin/bsdconfig/share/device.subr	Sun Jan 31 21:14:31 2016	(r295100)
@@ -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 ;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601312114.u0VLEVIo000925>