From: Wayne Davison Date: Fri, 8 Dec 2006 15:10:12 +0000 (+0000) Subject: Fixed --delete-delay by making the fprintf() output an unsigned short X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/01d29d7b02ba84510e288439872947365c07beff Fixed --delete-delay by making the fprintf() output an unsigned short for the mode. --- diff --git a/generator.c b/generator.c index abdbaaf8..3607f2e4 100644 --- a/generator.c +++ b/generator.c @@ -403,7 +403,7 @@ static void delete_in_dir(struct file_list *flist, char *fbuf, if (flist_find(flist, fp) < 0) { f_name(fp, delbuf); if (delete_delay_fp) - fprintf(delete_delay_fp, "%o %s%c", (short)fp->mode, delbuf, '\0'); + fprintf(delete_delay_fp, "%o %s%c", fp->mode, delbuf, '\0'); else delete_item(delbuf, fp->mode, NULL, DEL_RECURSE); }