Whamcloud - gitweb
LU-8064 lctl: fix a typo in lustre_cfg.c
[fs/lustre-release.git] / lustre / utils / lustre_cfg.c
index 19fdf66..f9d4a16 100644 (file)
@@ -1171,7 +1171,7 @@ param_display(struct param_opts *popt, char *pattern, char *value,
                         * there isn't much point trying to use fprintf() */
                        continue;
                }
-               if (rc >= sizeof(pathname)) {
+               if (rc2 >= sizeof(pathname)) {
                        fprintf(stderr, "error: %s: overflow processing '%s'\n",
                                opname, pathname);
                        if (rc == 0)