projects
/
xfstests-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common/xfs: Initialise OPTIND for getopts calls
[xfstests-dev.git]
/
common
/
xfs
diff --git
a/common/xfs
b/common/xfs
index 9ed78dee08ffeeaac4d1979192876100d5575d07..354f584f76558beb3beccc401f887b20b1347635 100644
(file)
--- a/
common/xfs
+++ b/
common/xfs
@@
-119,6
+119,7
@@
_xfs_check()
DBOPTS=" "
USAGE="Usage: xfs_check [-fsvV] [-l logdev] [-i ino]... [-b bno]... special"
+ OPTIND=1
while getopts "b:fi:l:stvV" c; do
case $c in
s) OPTS=$OPTS"-s ";;