Displaying 2 results from an estimated 2 matches for "f_convert".
Did you mean:
_convert
2013 Sep 03
1
[PATCH v2] tftp-hpa: add error check for disk filled up
....c2adbda 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -1681,7 +1681,11 @@ static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oac
syslog(LOG_WARNING, "tftpd: write(ack): %m");
goto abort;
}
- write_behind(file, pf->f_convert);
+ if(write_behind(file, pf->f_convert) < 0) {
+ nak(ENOSPACE, NULL);
+ (void)fclose(file);
+ goto abort;
+ }
for (;;) {
n = recv_time(peer, dp, PKTSIZE, 0, &r_timeout);
if (n < 0) { /* really? */...
2013 Aug 22
2
[PATCH] tftp-hpa: add error check for disk filled up
....c2adbda 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -1681,7 +1681,11 @@ static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oac
syslog(LOG_WARNING, "tftpd: write(ack): %m");
goto abort;
}
- write_behind(file, pf->f_convert);
+ if(write_behind(file, pf->f_convert) < 0) {
+ nak(ENOSPACE, NULL);
+ (void)fclose(file);
+ goto abort;
+ }
for (;;) {
n = recv_time(peer, dp, PKTSIZE, 0, &r_timeout);
if (n < 0) { /* really? */...