svn commit: r295100 - head/usr.sbin/bsdconfig/share
Devin Teske
dteske at FreeBSD.org
Sun Jan 31 21:14:32 UTC 2016
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 ;;
More information about the svn-src-all
mailing list