https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194250
Bug ID: 194250
Summary: c_size() function parses terabyte sized files
incorrectly due to incorrect scale factor
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
In usr.bin/find/function.c in c_size() function, when parsing
terabyte sized files, it incorrectly thinks 1 TB is 64 GB.
case 'T': /* terabytes 1<<40 */
scale = 0x1000000000LL;
...
0x1000000000 bytes = 64GB
The correct code should read:
...
case 'T': /* terabytes 1<<40 */
scale = 0x10000000000LL;
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"