Improved the index values that output_flist() outputs when we're being
authorWayne Davison <wayned@samba.org>
Tue, 22 May 2007 00:00:07 +0000 (00:00 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 22 May 2007 00:00:07 +0000 (00:00 +0000)
extra verbose:  they now have the list's ndx_start value added in.

flist.c

diff --git a/flist.c b/flist.c
index 1fd20f5..13000ce 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -2228,7 +2228,7 @@ static void clean_flist(struct file_list *flist, int strip_root)
                                if (verbose > 1) {
                                        rprintf(FINFO,
                                            "removing duplicate name %s from file list (%d)\n",
-                                           f_name(file, fbuf), drop);
+                                           f_name(file, fbuf), drop + flist->ndx_start);
                                }
                                /* Make sure we don't lose track of a user-specified
                                 * top directory. */
@@ -2370,9 +2370,12 @@ static void output_flist(struct file_list *flist)
                        trail = S_ISDIR(file->mode) ? "/" : "";
                } else
                        root = dir = slash = name = trail = "";
-               rprintf(FINFO, "[%s] i=%d %s %s%s%s%s mode=0%o len=%.0f%s%s flags=%x\n",
-                       who, i, root, dir, slash, name, trail, (int)file->mode,
-                       (double)F_LENGTH(file), uidbuf, gidbuf, file->flags);
+               rprintf(FINFO,
+                       "[%s] i=%d %s %s%s%s%s mode=0%o len=%.0f%s%s flags=%x\n",
+                       who, i + flist->ndx_start,
+                       root, dir, slash, name, trail,
+                       (int)file->mode, (double)F_LENGTH(file),
+                       uidbuf, gidbuf, file->flags);
        }
 }