X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/2b84abb596f52ab2068d52108adc96838ad4340a..31cef89cb428866f787983e68246030321893df4:/usr/src/cmd/uucp/uux.c diff --git a/usr/src/cmd/uucp/uux.c b/usr/src/cmd/uucp/uux.c index a6bd1b96cc..66df20a6ad 100644 --- a/usr/src/cmd/uucp/uux.c +++ b/usr/src/cmd/uucp/uux.c @@ -135,12 +135,18 @@ char *argv[]; } if (pipein) { + register int c; + gename(DATAPRE, xsys, 'B', dfile); fpd = fopen(dfile, "w"); ASSERT(fpd != NULL, "CAN'T OPEN %s", dfile); chmod(dfile, 0666); + while ((c = getc(stdin)) != EOF) + putc(c, fpd); +#ifdef notdef while (fgets(buf, BUFSIZ, stdin) != NULL) fputs(buf, fpd); +#endif fclose(fpd); if (strcmp(local, xsys) != SAME) { GENSEND(fpc, dfile, dfile, User, dfile);