Re: Bug#248646: mc: ftpfs can't show file size larger than 2 Gigabytes



> Package: mc
> Version: 1:4.6.0-4.6.1-pre1-3
> Severity: normal
> 
> 
> when browsing an ftp and a file is larger than 2g, mc simply shows 
> the file size exactly 2 gb large
> 

Test one line patch, please.  Any possible side effects?

-- 
Regards,
Andrew V. Samoilov.
vfs/ChangeLog:

2004-07-21  Andrew V. Samoilov <sav bcs zp ua>

	* utilvfs.c (vfs_parse_ls_lga): Use atof() instead of atol()
	for st_size to show file sizes > 2G.

--- vfs/vfs.c~	Wed Jul 21 21:29:23 2004
+++ vfs/vfs.c	Wed Jul 21 21:26:26 2004
@@ -1755,7 +1755,7 @@
 	if (!is_num (idx2))
 	    goto error;
 	
-	s->st_size = (size_t) atol (columns [idx2]);
+	s->st_size = (size_t) atof (columns [idx2]);
 #ifdef HAVE_ST_RDEV
 	s->st_rdev = 0;
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]