mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 02:36:16 +02:00
(process_file): Sizes must all be of type uintmax_t.
Otherwise, for files or totals that are too big, numbers would be truncated. Patch mostly by Michael Stone.
This commit is contained in:
6
src/du.c
6
src/du.c
@@ -315,9 +315,9 @@ static int
|
||||
process_file (const char *file, const struct stat *sb, int file_type,
|
||||
struct FTW *info)
|
||||
{
|
||||
size_t size;
|
||||
size_t size_including_subdirs;
|
||||
size_t size_to_propagate_to_parent;
|
||||
uintmax_t size;
|
||||
uintmax_t size_including_subdirs;
|
||||
uintmax_t size_to_propagate_to_parent;
|
||||
static int first_call = 1;
|
||||
static size_t prev_level;
|
||||
static size_t n_alloc;
|
||||
|
||||
Reference in New Issue
Block a user