Whamcloud - gitweb
b 1944
authorniu <niu>
Mon, 22 Sep 2003 02:33:04 +0000 (02:33 +0000)
committerniu <niu>
Mon, 22 Sep 2003 02:33:04 +0000 (02:33 +0000)
 fix the bug about parse argument when lfs run in interactive mode.

lustre/utils/lfs.c

index 69dd128..ba81d02 100644 (file)
@@ -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) {