1 This patch fixes Samba 2.0.0 up to 2.0.3, so that it does not overflow
2 on filesystems larger than 2GB. The problem is fixed in newer
6 --- client/client.c 1999/01/27 19:37:27 1.125
7 +++ client/client.c 1999/03/30 10:25:18 1.128
9 int put_total_time_ms = 0;
13 +static double dir_total;
21 - DEBUG(3, ("Total bytes listed: %d\n", dir_total));
22 + DEBUG(3, ("Total bytes listed: %.0f\n", dir_total));
30 - DEBUG(0, ("Total number of bytes: %d\n", dir_total));
31 + DEBUG(0, ("Total number of bytes: %.0f\n", dir_total));
35 Index: client/clitar.c
36 --- client/clitar.c 1999/02/03 16:30:54 1.67
37 +++ client/clitar.c 1999/03/30 10:41:07 1.70
41 static char *tarbuf, *buffer_p;
42 -static int tp, ntarf, tbufsiz, ttarf;
43 +static int tp, ntarf, tbufsiz;
45 /* Incremental mode */
47 /* Reset archive bit */
51 DEBUG(0, ("tar: dumped %d tar files\n", ntarf));
52 - DEBUG(0, ("Total bytes written: %d\n", ttarf));
53 + DEBUG(0, ("Total bytes written: %.0f\n", (double)ttarf));