* krcp works correctly even if not all data is written in a single
request.
* Implement temporary patch to make sure des_outbuf is big enough.
Proven should be sending the Cygnus patch once he decides how to
handle this permanently.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7706
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Mar 23 17:20:00 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * krcp.c (des_write): Use krb5_net_write instead of write, because
+ most parts of rcp that call this code ignore the return value and
+ we want to reblock properly.
+
+ * krshd.c (doit): Don't use non-blocking IO; it is unnecessary and
+ may cause problems.
+
Wed Mar 20 19:36:21 1996 Richard Basch <basch@lehman.com>
* krlogind.c (recvauth): use the library routines to do v4 to v5
#else
size = roundup(stb.st_blksize, blksize);
#endif
- if (size == 0)
+
size = blksize;
if (bp->cnt < size) {
if (bp->buf != 0)
if (fd == 0)
fd = 1;
if (!encryptflag)
- return(write(fd, buf, len));
+ return(krb5_net_write(bsd_context, fd, buf, len));
desoutbuf.length = krb5_encrypt_size(len,eblock.crypto_entry);
if (desoutbuf.length > sizeof(des_outbuf)){
(void) close(pw[1]);
(void) close(px[0]);
-if(port)
- ioctl(pv[0], FIONBIO, (char *)&one);
- ioctl(pw[0], FIONBIO, (char *)&one);
- /* should set s nbio! */
-
+
FD_ZERO(&readfrom);
FD_SET(f, &readfrom);