This bug seems to be caused by the following code snippet in
dosfsck/check.c:

    if (!(file->dir_ent.attr & ATTR_DIR) && CF_LE_L(file->dir_ent.size) >
      clusters*fs->cluster_size) {
      printf("%s\n  File size is %u bytes, cluster chain length is %lu bytes."
        "\n  Truncating file to %lu bytes.\n",path_name(file),CF_LE_L(file->
          dir_ent.size),clusters*fs->cluster_size,clusters*fs->cluster_size);
          MODIFY(file,size,CT_LE_L(clusters*fs->cluster_size));
    }

Both clusters and fs->cluster_size are 65536 in this case, so the
result of the multiplication is zero.

I tend to assume that the bug is not exposed on sarge because sarge
doesn't fsck vfat file systems, right?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to