summaryrefslogtreecommitdiffstats
path: root/src/appl/bsd/krcp.c
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>1996-03-24 20:28:37 +0000
committerSam Hartman <hartmans@mit.edu>1996-03-24 20:28:37 +0000
commit01519a9849fcb64989e80e5bdf498d6e41b97dac (patch)
tree8dc67b088ef96a2b8e8ede77014f831b74cfdde6 /src/appl/bsd/krcp.c
parente723097e4f2e14c637858a95d90cc81f0d4ec7f4 (diff)
downloadkrb5-01519a9849fcb64989e80e5bdf498d6e41b97dac.tar.gz
krb5-01519a9849fcb64989e80e5bdf498d6e41b97dac.tar.xz
krb5-01519a9849fcb64989e80e5bdf498d6e41b97dac.zip
* krshd no longer does non-blocking IO. It never really needed it
* 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
Diffstat (limited to 'src/appl/bsd/krcp.c')
-rw-r--r--src/appl/bsd/krcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c
index 3ed5c0089e..be7f072a26 100644
--- a/src/appl/bsd/krcp.c
+++ b/src/appl/bsd/krcp.c
@@ -1130,7 +1130,7 @@ struct buffer *allocbuf(bp, fd, blksize)
#else
size = roundup(stb.st_blksize, blksize);
#endif
- if (size == 0)
+
size = blksize;
if (bp->cnt < size) {
if (bp->buf != 0)
@@ -1433,7 +1433,7 @@ int des_write(fd, buf, len)
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)){