LPD applet

Denys Vlasenko vda.linux at googlemail.com
Sun Feb 24 22:07:21 UTC 2008


On Sunday 24 February 2008 22:24, dronnikov at gmail.com wrote:
> Hi!
> 
> Cosmetic changes to lpr.

-               if (bb_copyfd_size(fd, STDOUT_FILENO, st.st_size) != st.st_size) {
-                       // We're screwed. We sent less bytes than we advertised.
-                       bb_error_msg_and_die("local file changed size?!");
-               }
+               bb_copyfd_exact_size(fd, STDOUT_FILENO, st.st_size);

why?
--
vda



More information about the busybox mailing list