Made --list-only output missing args as a "*missing" line.
authorWayne Davison <wayned@samba.org>
Sat, 7 Mar 2009 06:42:13 +0000 (22:42 -0800)
committerMatt McCutchen <matt@mattmccutchen.net>
Fri, 13 Nov 2009 18:08:17 +0000 (13:08 -0500)
Backported to rsync v3.0.6 by Matt McCutchen, 2009-11-12.

generator.c

index 2ffd88a..ec33d5a 100644 (file)
@@ -1223,7 +1223,11 @@ static void list_file_entry(struct file_struct *f)
                        f_name(f, NULL), F_SYMLINK(f));
        } else
 #endif
-       {
+       if (delete_missing_args && !f->mode) {
+               rprintf(FINFO, "%-*s %s\n",
+                       /*colwidth*/11 + 31, "*missing",
+                       f_name(f, NULL));
+       } else {
                rprintf(FINFO, "%s %11.0f %s %s\n",
                        permbuf, len, timestring(f->modtime),
                        f_name(f, NULL));