wget: -O FILE is allowed to overwrite existing file (compat)
[oweals/busybox.git] / networking / tftp.c
index ac3a86afb6590e975dfccbba7fb41bf06fe3ded3..59f53ae4a735e026566667ac1e7fed221970268d 100644 (file)
@@ -225,7 +225,7 @@ static int tftp( USE_GETPUT(const int cmd,)
                /* Receive packet */
                /*pfd[0].fd = socketfd;*/
                pfd[0].events = POLLIN;
-               switch (poll(pfd, 1, waittime_ms)) {
+               switch (safe_poll(pfd, 1, waittime_ms)) {
                        unsigned from_port;
                case 1:
                        from->len = peer_lsa->len;
@@ -262,7 +262,7 @@ static int tftp( USE_GETPUT(const int cmd,)
 
                        goto send_again; /* resend last sent pkt */
                default:
-                       bb_perror_msg("poll");
+                       /*bb_perror_msg("poll"); - done in safe_poll */
                        goto ret;
                }
  process_pkt: