From c77f62a17f5179373cd50e8e759b64da6f6740ba Mon Sep 17 00:00:00 2001 From: niu Date: Mon, 22 Sep 2003 02:33:04 +0000 Subject: [PATCH] b 1944 fix the bug about parse argument when lfs run in interactive mode. --- lustre/utils/lfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 69dd128..ba81d02 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -114,6 +114,7 @@ static int lfs_find(int argc, char **argv) int quiet, verbose, recursive, c, rc; struct obd_uuid *obduuid = NULL; + optind = 0; quiet = verbose = recursive = 0; while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) { -- 1.8.3.1