Matt added "const" to a couple char pointers.
[rsync/rsync-patches.git] / flags.diff
index 720f72e..0f16462 100644 (file)
@@ -8,6 +8,8 @@ To use this patch, run these commands for a successful build:
     ./configure
     make
 
+TODO: fix --delete-delay to work with --flags option.
+
 --- old/configure.in
 +++ new/configure.in
 @@ -549,7 +549,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd strd
@@ -169,7 +171,7 @@ To use this patch, run these commands for a successful build:
                        f_name(fp, delbuf);
 -                      if (delete_delay_fp)
 +                      if (delete_delay_fp) /* XXX need to output fileflags value here too */
-                               fprintf(delete_delay_fp, "%o %s%c", fp->mode, delbuf, '\0');
+                               fprintf(delete_delay_fp, "%o %s%c", (short)fp->mode, delbuf, '\0');
                        else
 -                              delete_item(delbuf, fp->mode, NULL, DEL_RECURSE);
 +                              delete_item(delbuf, fp->mode, FILEFLAGS(fp->fileflags), NULL, DEL_RECURSE);