home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume35
/
mbox
/
part14
/
rz.cdiff
< prev
Wrap
Text File
|
1993-02-05
|
2KB
|
78 lines
*** rz.c~ Sat Aug 10 13:39:34 1991
--- rz.c Sat Aug 10 13:13:54 1991
***************
*** 1,6 ****
--- 1,8 ----
#define VERSION "2.03 05-17-88"
#define PUBDIR "/usr/spool/uucppublic"
+ /* Unnet == Modified for ix/MBox-Use !!! */
+
/*% cc -compat -M2 -Ox -K -i -DMD -DOMEN % -o rz; size rz;
<-xtx-*> cc386 -Ox -DMD -DOMEN -DSEGMENTS=8 rz.c -o $B/rz; size $B/rz
*
***************
*** 390,395 ****
--- 392,399 ----
{
register c;
+ strcpy(Pathname, *argp); checkpath(Pathname); /* Unnet */
+
if (Batch || argc==0) {
Crcflg=1;
if ( !Quiet)
***************
*** 432,439 ****
pclose(fout); return ERROR;
}
#endif
! if (fout)
! fclose(fout);
#ifndef vax11c
if (Restricted) {
unlink(Pathname);
--- 436,445 ----
pclose(fout); return ERROR;
}
#endif
! if (fout){
! fflush(fout); /* Unnet */
! fclose(fout);
! }
#ifndef vax11c
if (Restricted) {
unlink(Pathname);
***************
*** 915,922 ****
register n;
{
register char *p;
! if (n == 0)
! return OK;
if (Thisbinary) {
for (p=buf; --n>=0; )
--- 921,931 ----
register n;
{
register char *p;
!
! if (n == 0)
! return OK;
!
! if (fout == 0) fout = fopen( Pathname, "a" ); /* Unnet */
if (Thisbinary) {
for (p=buf; --n>=0; )
***************
*** 1436,1441 ****
--- 1445,1451 ----
return OK;
}
#endif
+ fflush(fout); /* Unnet */
if (fclose(fout)==ERROR) {
fprintf(stderr, "file close ERROR\n");
return ERROR;