Due to a minor bug where an unsigned long long should be used instead of a unsigned long the total size of the tagged files is clipped to <= 4 Gb. The following patch corrects the variable type and format in a subsequent printf.
- logan
--- yafc-1.1.1/src/tag.c Thu May 20 04:10:52 2004
+++ yafc-1.1.1-patched/src/tag.c Sat Apr 5 13:48:25 2008
@@ -155,14 +155,14 @@
static void show_taglist_info(void)
{
- unsigned long tlsize;
+ unsigned long long tlsize;
if(list_numitem(ftp->taglist) == 0) {
fprintf(stderr, _("nothing tagged -- use 'tag' to tag files\n"));
return;
}
tlsize = rglob_size(ftp->taglist);
- printf(_("%lu bytes (%s) in %u files tagged\n"),
+ printf(_("%llu bytes (%s) in %u files tagged\n"),
tlsize, human_size(tlsize), list_numitem(ftp->taglist));
printf(_("%llu directories tagged\n"), rglob_numdirs(ftp->taglist));
}