Displaying 2 results from an estimated 2 matches for "1873e70".
Did you mean:
18737
2013 Sep 03
1
[PATCH v2] tftp-hpa: add error check for disk filled up
...goto skipit; /* just skip over the putc */
/* else just fall through and allow it */
}
- putc(c, file);
+ if (putc(c, file) == EOF) {
+ return -1;
+ }
skipit:
prevchar = c;
}
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index 1873e70..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->...
2013 Aug 22
2
[PATCH] tftp-hpa: add error check for disk filled up
...}
- putc(c, file);
+ buf[count] = c;
+ count ++;
skipit:
prevchar = c;
}
- return count;
+ return write(fileno(file), buf, count);
}
/* When an error has occurred, it is possible that the two sides
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index 1873e70..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->...