https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191263

--- Comment #4 from [email protected] ---
Old:
 [ worr on terra ] ( ~ ) % dd if=/dev/zero of=/dev/null
count=18446744073709551616
dd: count: Result too large
 [ worr on terra ] ( ~ ) % dd if=/dev/zero of=/dev/null
count=18446744073709551615
dd: count cannot be negative
 [ worr on terra ] ( ~ ) % dd if=/dev/zero of=/dev/null
count=18446744073709551614
dd: count cannot be negative

New:
 [ root on dev ] ( ~ ) # ./base/bin/dd/dd if=/dev/zero of=/dev/null
count=18446744073709551616
dd: count: Result too large
 [ root on dev ] ( ~ ) # ./base/bin/dd/dd if=/dev/zero of=/dev/null
count=18446744073709551615
dd: count: Result too large
 [ root on dev ] ( ~ ) # ./base/bin/dd/dd if=/dev/zero of=/dev/null
count=18446744073709551614
^C1997704+0 records in
1997704+0 records out
1022824448 bytes transferred in 1.030049 secs (992986238 bytes/sec)

My last patch had a small error in it where it wouldn't accept SIZE_MAX as an
argument to count (special handling happens here for the case where count is
unspecified). What should be the final patch is now posted.

-- 
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]"

Reply via email to