diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/Makefile netstd/rdist/Makefile
*** netstd.orig/rdist.orig/Makefile	Mon Feb 14 23:33:09 1994
--- netstd/rdist/Makefile	Tue Oct 10 03:27:37 1995
***************
*** 42,50 ****
  TARGETS = src config doc support mf
  
  all install install.man: FRC
! 	@for t in $(TARGETS); do \
  		echo Making \"$@\" in \"$$t\"; \
  		(cd $$t; ${MAKE} $@); \
  	done
  
  clean:
--- 42,51 ----
  TARGETS = src config doc support mf
  
  all install install.man: FRC
! 	@for t in $(TARGETS); do ( \
  		echo Making \"$@\" in \"$$t\"; \
  		(cd $$t; ${MAKE} $@); \
+ 		) || exit 1; \
  	done
  
  clean:
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/Makefile.local netstd/rdist/Makefile.local
*** netstd.orig/rdist.orig/Makefile.local	Fri Feb 18 01:43:55 1994
--- netstd/rdist/Makefile.local	Thu Jan 26 23:25:15 1995
***************
*** 8,14 ****
  # BIN_DIR variable, you would uncomment the following line
  # or add your own line.
  #
! #BIN_DIR	= /usr/bin
  
  #
  # Add any local definetions you want pass to the compiler to DEFS_LOCAL
--- 8,28 ----
  # BIN_DIR variable, you would uncomment the following line
  # or add your own line.
  #
! BIN_DIR = ${DEBDIR}/usr/bin
! SBIN_DIR = ${DEBDIR}/usr/sbin
! BIN_GROUP = root
! MAN_GROUP = root
! RDIST_MODE = 755
! RDISTD_MODE = 755
! MAN_1_DIR       = ${DEBDIR}/usr/man/man1
! MAN_8_DIR       = ${DEBDIR}/usr/man/man8
! MAN_OWNER       = root
! MAN_GROUP       = root
! MAN_MODE        = 644
!  
! YACC = bison -y
! OPT = -O2 -fomit-frame-pointer -pipe
!  
  
  #
  # Add any local definetions you want pass to the compiler to DEFS_LOCAL
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/doc/Makefile.real netstd/rdist/doc/Makefile.real
*** netstd.orig/rdist.orig/doc/Makefile.real	Tue Apr 26 19:19:34 1994
--- netstd/rdist/doc/Makefile.real	Thu Jan 26 23:43:44 1995
***************
*** 42,48 ****
  
  doc:
  
! install:
  
  install.man: rdist.man rdistd.man
  	${INSTALL} ${INSTALL_ARGS} rdist.man ${CLIENT_DEST}
--- 42,48 ----
  
  doc:
  
! install: install.man
  
  install.man: rdist.man rdistd.man
  	${INSTALL} ${INSTALL_ARGS} rdist.man ${CLIENT_DEST}
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/include/defs.h netstd/rdist/include/defs.h
*** netstd.orig/rdist.orig/include/defs.h	Tue Apr 12 01:19:22 1994
--- netstd/rdist/include/defs.h	Wed Mar 15 20:40:18 1995
***************
*** 354,360 ****
  char	       		       *xcalloc();
  char	       		       *xmalloc();
  char	       		       *xrealloc();
! extern char		       *basename();
  extern char		       *getdistoptlist();
  extern char		       *getgroupname();
  extern char		       *getnlstr();
--- 354,360 ----
  char	       		       *xcalloc();
  char	       		       *xmalloc();
  char	       		       *xrealloc();
! /* extern char		       *basename(); */
  extern char		       *getdistoptlist();
  extern char		       *getgroupname();
  extern char		       *getnlstr();
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/src/Makefile.real netstd/rdist/src/Makefile.real
*** netstd.orig/rdist.orig/src/Makefile.real	Fri Feb 18 01:14:11 1994
--- netstd/rdist/src/Makefile.real	Thu Jan 26 23:26:36 1995
***************
*** 78,86 ****
  		$(COMMONOBJS) $(MISSINGOBJS)
  
  install: $(CLIENT_BIN) $(SERVER_BIN)
! 	$(INSTALL) ${IN_ARGS} -o root -m ${RDIST_MODE} \
  		$(CLIENT_BIN) $(BIN_DIR)/$(CLIENT)
! 	$(INSTALL) ${IN_ARGS} -o ${BIN_OWNER} -m ${RDISTD_MODE} \
! 		$(SERVER_BIN) $(BIN_DIR)/$(SERVER)
  
  install.man:
--- 78,86 ----
  		$(COMMONOBJS) $(MISSINGOBJS)
  
  install: $(CLIENT_BIN) $(SERVER_BIN)
! 	$(INSTALL) ${IN_ARGS} -s -o root -m ${RDIST_MODE} \
  		$(CLIENT_BIN) $(BIN_DIR)/$(CLIENT)
! 	$(INSTALL) ${IN_ARGS} -s -o ${BIN_OWNER} -m ${RDISTD_MODE} \
! 		$(SERVER_BIN) $(SBIN_DIR)/$(SERVER)
  
  install.man:
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/src/child.c netstd/rdist/src/child.c
*** netstd.orig/rdist.orig/src/child.c	Thu Mar 31 04:56:26 1994
--- netstd/rdist/src/child.c	Sat Jul  1 14:40:40 1995
***************
*** 203,210 ****
  		debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %d bytes]", 
  			 child->c_name, child->c_pid, child->c_readfd, amt);
  
! 		write(fileno(stdout), rbuf, amt);
! 
  		debugmsg(DM_MISC, "[readchild(%s, %d, %d) write done]",
  			 child->c_name, child->c_pid, child->c_readfd);
  	}
--- 203,218 ----
  		debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %d bytes]", 
  			 child->c_name, child->c_pid, child->c_readfd, amt);
  
! 		{
! 			int wamt=amt, ramt, woff=0;
! 			while ((ramt = write(fileno(stdout), rbuf+woff, wamt)) > 0) {
! 				woff += ramt; wamt -= ramt;
! 				debugmsg(DM_MISC,
! 					 "[readchild(%s, %d, %d) only wrote %d/%d bytes]",
! 					 child->c_name, child->c_pid, child->c_readfd, 
! 					 ramt, wamt);
! 			}
! 		}
  		debugmsg(DM_MISC, "[readchild(%s, %d, %d) write done]",
  			 child->c_name, child->c_pid, child->c_readfd);
  	}
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/src/client.c netstd/rdist/src/client.c
*** netstd.orig/rdist.orig/src/client.c	Fri Apr 22 19:24:01 1994
--- netstd/rdist/src/client.c	Sat Jul  1 14:40:40 1995
***************
*** 429,440 ****
  			 * this situation gracefully.
  			 */
  		}
! 		if (write(rem, buf, amt) == -1) {
! 			error("%s: Error writing to client: %s", 
! 			      target, SYSERR);
! 			err();
! 			++goterr;
! 			break;
  		}
  		(void) alarm(0);
  	}
--- 429,446 ----
  			 * this situation gracefully.
  			 */
  		}
! 		{
! 			int ramt, wamt=amt, woff=0;
! 			while((ramt=write(rem,buf+woff,wamt)) > 0) {
! 				woff += ramt; wamt -= ramt;
! 			}
! 			if (ramt < 0) {
! 				error("%s: Error writing to client: %s", 
! 				      target, SYSERR);
! 				err();
! 				++goterr;
! 				break;
! 			}
  		}
  		(void) alarm(0);
  	}
diff -c -P --recursive --exclude=COPYRIGHT --exclude=COPYING netstd.orig/rdist.orig/src/common.c netstd/rdist/src/common.c
*** netstd.orig/rdist.orig/src/common.c	Wed Apr 20 20:11:03 1994
--- netstd/rdist/src/common.c	Sat Jul  1 14:40:40 1995
***************
*** 268,274 ****
  		 (cmd == C_NONE) ? len-1 : len-2,
  		 (cmd == C_NONE) ? msg : msg + 1);
  
! 	return(!(write(rem, msg, len) == len));
  }
  
  /*
--- 268,280 ----
  		 (cmd == C_NONE) ? len-1 : len-2,
  		 (cmd == C_NONE) ? msg : msg + 1);
  
! 	{
! 		int ramt, wamt=len, woff=0;
! 		while((ramt = write(rem,msg+woff,wamt)) > 0) {
! 			woff += ramt; wamt -= ramt;
! 		}
! 		return ramt<0;
! 	}
  }
  
  /*
***************
*** 885,891 ****
  }
  
  extern char *basename(path)
! 	char *path;
  {
  	register char *cp;
   
--- 891,897 ----
  }
  
  extern char *basename(path)
! 	const char *path;
  {
  	register char *cp;
   
