From: niu Date: Mon, 22 Sep 2003 02:33:04 +0000 (+0000) Subject: b 1944 X-Git-Tag: v1_7_0_51~2^7~507 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c77f62a17f5179373cd50e8e759b64da6f6740ba;p=fs%2Flustre-release.git b 1944 fix the bug about parse argument when lfs run in interactive mode. --- 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) {