_populate_fs should use OPTIND when getopts is used

Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Anand Jain
2011-10-20 23:41:22 +08:00
committed by Christoph Hellwig
parent c05a8ba23f
commit 2d0a5827e3
+1
View File
@@ -1547,6 +1547,7 @@ _populate_fs()
root=root # path of initial root of directory tree
randomdata=false # -x data type urandom or zero
OPTIND=1
while getopts "d:f:n:r:s:v:x" c
do
case $c in