Subject: misc cleanup, unistd.h bug, telnetd pty speed, hk&xp badsector partition
Index: src/sys/conf/NONEboot.s src/sys/pdpuba/{xp,hk}.c src/libexec/telnetd/telnetd.c src/man/man1/sendbug.1 src/etc/MAKEDEV include/unistd.h src/local/Makefile

Description:
	1) patch 482 removed /dev/drum from program sources but did not update
	the MAKEDEV script(s) that created the entry in /dev

	2) patch 482 also updated the partition tables in /etc/disktab AND the
	bad144 program but neglected to change the badsector partition in the 
	XP driver

	3) sendbug manpage is the original 4BSD version with the wrong 
	   email address and references the wrong pathname for the bugformat 
	   template file.

	4) Patch 481 adds some new telnetd functionality but causes the
	   tty speed to get set to 0. "vi" uses the tty speed to determine how
	   many lines to use and since 0 is less than 300 baud "vi" uses 
	   only 8 lines at the bottom of the screen rather than the full screen.

	5) 'particular' is spelled incorrectly in sys/conf/boot/NONEboot.s 

	6) The value of SEEK_END (used with lseek(2) or fseek(3)) is not 
	   defined in unistd.h but rather SEEK_SET is defined twice.

	7) /usr/src/local/Makefile didn't use install(1) to set mode&owner for
	   all programs.  Also the Makefile wrote its own dependency processing
	   rather than use mkdep(1) as other Makefiles do.
	   
	   
Repeat-By:
	1) Observation.  /dev/drum should be removed from /dev, /dev/MAKEDEV 
	   and /usr/src/etc/MAKEDEV.  Also /dev/MAKEDEV.43 should be removed.
	   There are device entries that have no drivers. If anyone ever 
	   writes a dmf32 driver a major device number will be allocated at 
	   that time.

	2) Observation.  Patch 482 standardized use of the 'c' partition 
	   for bad sector handling but neglected to update the xp driver's
	   use of the 'h' partition.  Comments in both the xp and hk driver 
	   are updated.

	3) Read the manpage (man sendbug).  bugformat was relocated from 
	   /usr/ucb to /usr/share/misc/bugformat eons ago.

	4) After applying patch 481, telnet to localhost and do a "stty -a"

	   # stty -a
           new tty, speed 0 baud, 0 rows, 0 columns

	   Run vi and notice that the cursor is at line 16 instead of line 1.

	5) Observation.  The word particular is spelled as particulare

	6) Use SEEK_END rather than L_XTND with lseek() or fseek()  and
	   note that SEEK_END will cause an undefined error.

	   OR by observation:  

	   Note unistd.h defines SEEK_SET twice but does not define SEEK_END:

	   #define SEEK_SET        0
	   #define SEEK_CUR        1
	   #define SEEK_SET        2

	   This "oops" came in with patch #473:
	     
	     Headers- Add missing defines to unistd.h as well as prototypes 
	     for the functions expected in it.

	7) Observation.  It was noticed chmod and chgrp were used instead of
	   "-m" and "-g" with "install".  Concept of mkdep was replicated 
	   instead of invoking mkdep itself.  Cleanup time.

Fix:
	Thanks to martin@teckelworks.com  for spotting (3) and providing the
	bugreport/fix for (4).  And thanks to bqt@softjar.se for (6).

	1) remove the unneeded files in /dev
	2) change the patition used from 7 ('h') to 2 ('c')
	3) update the sendbug manpage and scripts/programs
	4) The fix is to set the sg_ispeed and sg_ospeed structure members 
	   in sgttyb to EXTB.  This will cause stty -a to return a speed of 
	   38400 as it previously did.
	5) update NONEboot.s to fix the spelling error.
	6) change the 2nd SEEK_SET to SEEK_END
	7) /usr/src/local is a kludge but at least it can be neat.

	Cut where indicated and save to a file (/tmp/483.patch).  Then:

cd /
patch -p0 < /tmp/483.patch

rm -f /dev/drum /dev/MAKEDEV.43

cd /usr/src/man/man1
make sendbug.0
install -o bin -g bin -m 444 sendbug.0 /usr/man/cat1

cd /usr/src/ucb/sendbug
make install
make clean

cd /usr/src/libexec/telnetd
make install
make clean

	This and previous updates to 2.11BSD are available at the following
	locations:
	
	ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD
	https://www.tuhs.org/Archive/Distributions/UCB/2.11BSD/Patches/
	ftp://ftp.2bsd.com/2.11BSD

	MAC users will have to use Firefox to access the FTP sites since
	Apple has removed ftp: URL support.

---------------------------cut here--------------------
*** ./dev/MAKEDEV.old	Sun Jul 25 23:19:11 1999
--- ./dev/MAKEDEV	Mon Sep 30 21:32:40 2024
***************
*** 4,10 ****
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)MAKEDEV	4.27.6 (2.11BSD) 1999/2/19
  #
  # Device "make" file.  Valid arguments:
  #	std	standard devices
--- 4,10 ----
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)MAKEDEV	4.28 (2.11BSD) 2024/9/30
  #
  # Device "make" file.  Valid arguments:
  #	std	standard devices
***************
*** 28,36 ****
  #	dl*	dl-11 units other than the console
  #	dz*	unibus dz11 and dz32
  #	dh*	unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11)
- #	dmf*	unibus dmf32
  #	dhu*    unibus dhu11
- #	dmz*    unibus dmz32
  #	dhv*    qbus dhv11
  # Pseudo terminals:
  #	pty*	set of 16 master and slave pseudo terminals
--- 28,34 ----
***************
*** 53,59 ****
  
  std)
  	mknod console	c 0 0
- #	mknod kUmem	c 1 3	; chmod 600 kUmem ;: untested
  	mknod kmem		c 1 1	; chmod 640 kmem ; chgrp kmem kmem
  	mknod mem		c 1 0	; chmod 640 mem ; chgrp kmem mem
  	mknod null		c 1 2	; chmod 666 null
--- 51,56 ----
***************
*** 234,258 ****
  	esac
  	;;
  
- #
- # we may want dmz and dmf someday...
- # dhu*|dh*|dmf*|dmz*)
  dhv*|dhu*|dh*)
  	case $i in
- #	dmz*)	name=dmz; major=37; count=24;
- #		unit=`expr $i : "$name\(.*\)"`
- #		case $unit in
- #		0) ch=a ;; 1) ch=b ;; 2) ch=c ;; 3) ch=e ;;
- #		4) ch=f ;; 5) ch=g ;;
- #		*) echo bad unit for $name in: $i ;;
- #		esac;;
- #	dmf*)	name=dmf; major=22; count=8;
- #		unit=`expr $i : "$name\(.*\)"`
- #		case $unit in
- #		0) ch=A ;; 1) ch=B ;; 2) ch=C ;; 3) ch=E ;;
- #		4) ch=F ;; 5) ch=G ;; 6) ch=H ;; 7) ch=I ;;
- #		*) echo bad unit for $name in: $i ;;
- #		esac;;
  	dhv*)	name=dhv; major=24; count=8;
  		unit=`expr $i : "$name\(.*\)"`;
  		case $unit in
--- 231,238 ----
***************
*** 302,315 ****
  	esac
  	;;
  
- # we may want va and vp someday...
  # lp*|va*|vp*)
  lp*|dn*)
  	case $i in
  	lp*) name=lp; major=5;;
  	dn*) name=dn; major=21;;
- #	va*) name=va; major=10;;
- #	vp*) name=vp; major=6;;
  	esac
  	unit=`expr $i : "$name\(.*\)"`
  	case $unit in
--- 282,292 ----
*** ./usr/include/unistd.h.old	Fri Jan 21 14:08:41 2022
--- ./usr/include/unistd.h	Sat Feb 22 06:46:47 2025
***************
*** 30,36 ****
   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   *
!  *	@(#)unistd.h	8.11 (2.11BSD) 2022/1/21
   */
  
  #ifndef _UNISTD_H_
--- 30,36 ----
   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   *
!  *	@(#)unistd.h	8.12 (2.11BSD) 2025/2/22
   */
  
  #ifndef _UNISTD_H_
***************
*** 50,56 ****
  /* for lseek() */
  #define	SEEK_SET	0
  #define	SEEK_CUR	1
! #define	SEEK_SET	2
  
  /* for access() */
  #define F_OK	0	/* test for presence of file */
--- 50,56 ----
  /* for lseek() */
  #define	SEEK_SET	0
  #define	SEEK_CUR	1
! #define	SEEK_END	2
  
  /* for access() */
  #define F_OK	0	/* test for presence of file */
*** ./usr/src/sys/pdpuba/xp.c.old	Fri Apr  3 23:57:38 1998
--- ./usr/src/sys/pdpuba/xp.c	Sat Sep 28 16:35:39 2024
***************
*** 3,9 ****
   * All rights reserved.  The Berkeley software License Agreement
   * specifies the terms and conditions for redistribution.
   *
!  *	@(#)xp.c	2.6 (2.11BSD GTE) 1998/4/3
   */
  
  /*
--- 3,9 ----
   * All rights reserved.  The Berkeley software License Agreement
   * specifies the terms and conditions for redistribution.
   *
!  *	@(#)xp.c	2.7 (2.11BSD) 2024/9/29
   */
  
  /*
***************
*** 475,489 ****
  #endif
  
  /*
!  * XXX - The 'h' partition is used below to access the bad block area.  This
   * XXX - will almost certainly be wrong if the user has defined another 
!  * XXX - partition to span the entire drive including the bad block area.  It
!  * XXX - is not known what to do about this.
  */
  #ifdef BADSECT
  		bbp = &bxpbuf[unit];
  		bbp->b_flags = B_READ | B_BUSY | B_PHYS;
! 		bbp->b_dev = bp->b_dev | 7;	/* "h" partition whole disk */
  		bbp->b_bcount = sizeof(struct dkbad);
  		bbp->b_un.b_addr = (caddr_t)&xpbad[unit];
  		bbp->b_blkno = (daddr_t)xd->xp_ncyl * xd->xp_nspc - xd->xp_nsect;
--- 475,492 ----
  #endif
  
  /*
!  * XXX - The 'c' partition is used below to access the bad block area.  This
   * XXX - will almost certainly be wrong if the user has defined another 
!  * XXX - partition to span the entire drive including the bad block area.
!  * XXX - It is not known what to do about this.
!  * XXX -
!  * XXX - As of 2024/9/28 the xp entries in disktab(5) were updated to use the
!  * XXX - 'c' partition to span the entire drive.  bad144(8) was also changed.
  */
  #ifdef BADSECT
  		bbp = &bxpbuf[unit];
  		bbp->b_flags = B_READ | B_BUSY | B_PHYS;
! 		bbp->b_dev = bp->b_dev | ('c' - 'a');
  		bbp->b_bcount = sizeof(struct dkbad);
  		bbp->b_un.b_addr = (caddr_t)&xpbad[unit];
  		bbp->b_blkno = (daddr_t)xd->xp_ncyl * xd->xp_nspc - xd->xp_nsect;
*** ./usr/src/sys/pdpuba/hk.c.old	Tue Jan  7 22:14:12 2020
--- ./usr/src/sys/pdpuba/hk.c	Sat Sep 28 16:32:35 2024
***************
*** 3,9 ****
   * All rights reserved.  The Berkeley software License Agreement
   * specifies the terms and conditions for redistribution.
   *
!  *	@(#)hk.c	2.5 (2.11BSD) 2020/1/7
   */
  
  /*
--- 3,9 ----
   * All rights reserved.  The Berkeley software License Agreement
   * specifies the terms and conditions for redistribution.
   *
!  *	@(#)hk.c	2.6 (2.11BSD) 2024/9/29
   */
  
  /*
***************
*** 406,415 ****
  		disk->dk_flags |= DKF_ONLINE;
  /*
   * XXX - The 'c' partition is used below to access the bad block area.  This
!  * XXX - is DIFFERENT than the XP driver (which should have used 'c' but could
!  * XXX - not due to historical reasons).  The 'c' partition MUST span the entire
!  * XXX - disk including the bad sector track.  The 'h' partition should be 
!  * XXX - used for user data.
  */
  #ifdef BADSECT
  		bbp->b_flags = B_READ|B_BUSY|B_PHYS;
--- 406,412 ----
  		disk->dk_flags |= DKF_ONLINE;
  /*
   * XXX - The 'c' partition is used below to access the bad block area.  This
!  * XXX - partition MUST span the entire disk including the bad sector track.
  */
  #ifdef BADSECT
  		bbp->b_flags = B_READ|B_BUSY|B_PHYS;
*** ./usr/src/sys/conf/boot/NONEboot.s.old	Tue Jan  7 21:49:15 2020
--- ./usr/src/sys/conf/boot/NONEboot.s	Fri Mar  7 14:45:30 2025
***************
*** 1,8 ****
  /*
!  *	SCCS id	@(#)NONEboot.s	1.3 (2.11BSD)	2020/1/7
   */
  // The intention is for this file to be used if a boot program isn't
! // available for a particulare drive/controller, or the autoboot
  // feature isn't desired.
  
  halt = 0
--- 1,8 ----
  /*
!  *	SCCS id	@(#)NONEboot.s	1.4 (2.11BSD)	2025/3/7
   */
  // The intention is for this file to be used if a boot program isn't
! // available for a particular drive/controller or the autoboot
  // feature isn't desired.
  
  halt = 0
*** ./usr/src/etc/MAKEDEV.old	Sun Jul 25 23:19:28 1999
--- ./usr/src/etc/MAKEDEV	Mon Sep 30 21:43:11 2024
***************
*** 4,10 ****
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)MAKEDEV	4.27.6 (2.11BSD) 1999/2/19
  #
  # Device "make" file.  Valid arguments:
  #	std	standard devices
--- 4,10 ----
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)MAKEDEV	4.28 (2.11BSD) 2024/9/30
  #
  # Device "make" file.  Valid arguments:
  #	std	standard devices
***************
*** 28,36 ****
  #	dl*	dl-11 units other than the console
  #	dz*	unibus dz11 and dz32
  #	dh*	unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11)
- #	dmf*	unibus dmf32
  #	dhu*    unibus dhu11
- #	dmz*    unibus dmz32
  #	dhv*    qbus dhv11
  # Pseudo terminals:
  #	pty*	set of 16 master and slave pseudo terminals
--- 28,34 ----
***************
*** 53,59 ****
  
  std)
  	mknod console	c 0 0
- #	mknod kUmem	c 1 3	; chmod 600 kUmem ;: untested
  	mknod kmem		c 1 1	; chmod 640 kmem ; chgrp kmem kmem
  	mknod mem		c 1 0	; chmod 640 mem ; chgrp kmem mem
  	mknod null		c 1 2	; chmod 666 null
--- 51,56 ----
***************
*** 234,258 ****
  	esac
  	;;
  
- #
- # we may want dmz and dmf someday...
- # dhu*|dh*|dmf*|dmz*)
  dhv*|dhu*|dh*)
  	case $i in
- #	dmz*)	name=dmz; major=37; count=24;
- #		unit=`expr $i : "$name\(.*\)"`
- #		case $unit in
- #		0) ch=a ;; 1) ch=b ;; 2) ch=c ;; 3) ch=e ;;
- #		4) ch=f ;; 5) ch=g ;;
- #		*) echo bad unit for $name in: $i ;;
- #		esac;;
- #	dmf*)	name=dmf; major=22; count=8;
- #		unit=`expr $i : "$name\(.*\)"`
- #		case $unit in
- #		0) ch=A ;; 1) ch=B ;; 2) ch=C ;; 3) ch=E ;;
- #		4) ch=F ;; 5) ch=G ;; 6) ch=H ;; 7) ch=I ;;
- #		*) echo bad unit for $name in: $i ;;
- #		esac;;
  	dhv*)	name=dhv; major=24; count=8;
  		unit=`expr $i : "$name\(.*\)"`;
  		case $unit in
--- 231,238 ----
***************
*** 302,315 ****
  	esac
  	;;
  
- # we may want va and vp someday...
  # lp*|va*|vp*)
  lp*|dn*)
  	case $i in
  	lp*) name=lp; major=5;;
  	dn*) name=dn; major=21;;
- #	va*) name=va; major=10;;
- #	vp*) name=vp; major=6;;
  	esac
  	unit=`expr $i : "$name\(.*\)"`
  	case $unit in
--- 282,292 ----
*** ./usr/src/libexec/telnetd/telnetd.c.old	Mon Apr 17 21:36:32 2023
--- ./usr/src/libexec/telnetd/telnetd.c	Wed Mar  5 20:49:09 2025
***************
*** 9,15 ****
  "@(#) Copyright (c) 1983 Regents of the University of California.\n\
   All rights reserved.\n";
  
! static char sccsid[] = "@(#)telnetd.c	5.20.3 (2.11BSD) 1996/11/16";
  #endif
  
  /*
--- 9,15 ----
  "@(#) Copyright (c) 1983 Regents of the University of California.\n\
   All rights reserved.\n";
  
! static char sccsid[] = "@(#)telnetd.c	5.21 (2.11BSD) 2025/3/5";
  #endif
  
  /*
***************
*** 300,305 ****
--- 300,308 ----
  		fatalperror(f, line);
  
  	gethostname(hostname, sizeof (hostname));
+ 
+ 	b.sg_ispeed = EXTB;
+ 	b.sg_ospeed = EXTB;
  
  	gettable("default", defent, defstrs);
  	gendefaults();
*** ./usr/src/local/Makefile.old	Wed Nov 27 22:27:31 1996
--- ./usr/src/local/Makefile	Sun Feb 23 19:33:35 2025
***************
*** 1,5 ****
  #
! # 	#(@)Makefile	1.2.2	(2.11BSD) 1996/11/27
  #
  DESTDIR=
  CFLAGS=	-O
--- 1,5 ----
  #
! # 	#(@)Makefile	2.0 (2.11BSD) 2025/2/23
  #
  DESTDIR=
  CFLAGS=	-O
***************
*** 6,31 ****
  SEPFLAG= -i
  
  # Programs that live in subdirectories, and have makefiles of their own.
- #
  SUBDIR= afio cxref ddd less mkovmake mp mtools welcome qterm zmodem
  
  # C programs that live in the current directory and do not need
  # explicit make lines.
- #
  STD= decompr16 trace 
  
- # C programs that live in the current directory and need explicit make lines.
- #
- NSTD=
- 
- # Shell scripts
- #
- SHELL= none
- 
  # Manpage directory
  MANDIR= ${DESTDIR}/usr/local/man
  
! all:	${SUBDIR} ${STD} ${NSTD}
  
  ${SUBDIR}: FRC
  	cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG}
--- 6,24 ----
  SEPFLAG= -i
  
  # Programs that live in subdirectories, and have makefiles of their own.
  SUBDIR= afio cxref ddd less mkovmake mp mtools welcome qterm zmodem
  
+ # C source that lives in the current directory
+ SRCS= decompr16.c trace.c
+ 
  # C programs that live in the current directory and do not need
  # explicit make lines.
  STD= decompr16 trace 
  
  # Manpage directory
  MANDIR= ${DESTDIR}/usr/local/man
  
! all:	${SUBDIR} ${STD}
  
  ${SUBDIR}: FRC
  	cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG}
***************
*** 35,43 ****
  ${STD}:
  	cc ${CFLAGS} ${SEPFLAG} -o $@ $@.c
  
! # Files listed in ${NSTD} have explicit make lines given below.
! 
! install: ${STD} ${NSTD}
  	-mkdir ${MANDIR}
  	-chmod a+r ${MANDIR}
  	-for i in 1 2 3 4 5 6 7 8; do \
--- 28,34 ----
  ${STD}:
  	cc ${CFLAGS} ${SEPFLAG} -o $@ $@.c
  
! install: ${STD}
  	-mkdir ${MANDIR}
  	-chmod a+r ${MANDIR}
  	-for i in 1 2 3 4 5 6 7 8; do \
***************
*** 44,79 ****
  		(mkdir ${MANDIR}/cat$$i; chmod a+r ${MANDIR}/cat$$i); done
  	-for i in ${SUBDIR}; do \
  		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
! 	-for i in ${STD} ${NSTD}; do \
! 		(install $$i ${DESTDIR}/usr/local/$$i); done
! 	-chgrp kmem ${DESTDIR}/usr/local/trace
! 	-chmod 2755 ${DESTDIR}/usr/local/trace
! #	-for i in ${SHELL}; do \
! #		(install -c -m 755 $$i.sh ${DESTDIR}/usr/local/$$i); done
  	-sh /usr/sbin/makewhatis ${MANDIR}
  
  clean:
! 	rm -f a.out core *.s *.o
  	for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
- 	rm -f ${STD} ${NSTD}
  
  depend:
! 	cat </dev/null >x.c
! 	for i in ${STD} ${NSTD}; do \
! 		(echo $$i: $$i.c >>makedep; \
! 		/bin/grep '^#[ 	]*include' x.c $$i.c | sed \
! 			-e 's,<\(.*\)>,"/usr/include/\1",' \
! 			-e 's/:[^"]*"\([^"]*\)".*/: \1/' \
! 			-e 's/\.c//' >>makedep); done
! 	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
! 	echo '$$r makedep' >>eddep
! 	echo 'w' >>eddep
! 	cp Makefile Makefile.bak
! 	ed - Makefile < eddep
! 	rm eddep makedep x.c
! 	echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
! 	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
! 	echo '# see make depend above' >> Makefile
  
  # DO NOT DELETE THIS LINE -- make depend uses it
  
--- 35,51 ----
  		(mkdir ${MANDIR}/cat$$i; chmod a+r ${MANDIR}/cat$$i); done
  	-for i in ${SUBDIR}; do \
  		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
! 	-install -s -o bin -g bin  decompr16 ${DESTDIR}/usr/local/decompr16
! 	-install -s -o bin -g kmem -m 2755 trace ${DESTDIR}/usr/local/trace
  	-sh /usr/sbin/makewhatis ${MANDIR}
  
  clean:
! 	rm -f a.out core *.s *.o ${STD}
  	for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
  
  depend:
! 	-chmod +w Makefile
! 	mkdep -p ${CFLAGS} ${SRCS}
  
  # DO NOT DELETE THIS LINE -- make depend uses it
  
*** ./usr/src/ucb/sendbug/sendbug.sh.old	Thu Feb 27 09:19:02 2020
--- ./usr/src/ucb/sendbug/sendbug.sh	Fri Mar  7 21:54:56 2025
***************
*** 4,18 ****
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)sendbug.sh	6.2 (2.11BSD) 2020/2/27
  #
! # Create a bug report and mail to the 2bsd maintainer.
  #
  
  TEMP=/tmp/bug$$
  FORMAT=/usr/share/misc/bugformat
  
! : ${BUGADDR=sms@2BSD.COM}
  : ${EDITOR=/usr/ucb/vi}
  
  trap '/bin/rm -f $TEMP ; exit 1' 1 2 3 13 15
--- 4,18 ----
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)sendbug.sh	6.3 (2.11BSD) 2025/3/7
  #
! # Create a bug report and mail to bugs@2bsd.com
  #
  
  TEMP=/tmp/bug$$
  FORMAT=/usr/share/misc/bugformat
  
! : ${BUGADDR=bugs@2BSD.COM}
  : ${EDITOR=/usr/ucb/vi}
  
  trap '/bin/rm -f $TEMP ; exit 1' 1 2 3 13 15
*** ./usr/src/ucb/sendbug/bugfiler.c.old	Wed Oct 23 18:18:44 1996
--- ./usr/src/ucb/sendbug/bugfiler.c	Fri Mar  7 21:59:09 2025
***************
*** 9,15 ****
  "@(#) Copyright (c) 1983 Regents of the University of California.\n\
   All rights reserved.\n";
  
! static char sccsid[] = "@(#)bugfiler.c	5.5.2 (2.11BSD GTE) 1996/10/23";
  #endif
  
  /*
--- 9,15 ----
  "@(#) Copyright (c) 1983 Regents of the University of California.\n\
   All rights reserved.\n";
  
! static char sccsid[] = "@(#)bugfiler.c	5.6.2 (2.11BSD) 2025/3/7";
  #endif
  
  /*
***************
*** 29,38 ****
  #include <sys/dir.h>
  
  #ifndef BUGS_NAME
! #define	BUGS_NAME	"2bsd-bugs"
  #endif
  #ifndef BUGS_HOME
! #define	BUGS_HOME	"@moe.2bsd.com"
  #endif
  
  #ifndef UNIXTOMH
--- 29,38 ----
  #include <sys/dir.h>
  
  #ifndef BUGS_NAME
! #define	BUGS_NAME	"bugs"
  #endif
  #ifndef BUGS_HOME
! #define	BUGS_HOME	"@2bsd.com"
  #endif
  
  #ifndef UNIXTOMH
*** ./usr/src/ucb/sendbug/Makefile.old	Fri Mar  7 21:55:17 2025
--- ./usr/src/ucb/sendbug/Makefile	Fri Mar  7 21:56:11 2025
***************
*** 3,15 ****
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)Makefile	5.7.1 (GTE) 1996/10/23
  #
  # Bug report processor and associated programs
  #
  
! BUGS_NAME = sms
! BUGS_HOME = @MOE.2BSD.COM
  DEFS = -DBUGS_NAME='"$(BUGS_NAME)"' -DBUGS_HOME='"$(BUGS_HOME)"'
  CFLAGS = -O -DUNIXCOMP $(DEFS)
  DESTDIR=
--- 3,15 ----
  # All rights reserved.  The Berkeley software License Agreement
  # specifies the terms and conditions for redistribution.
  #
! #	@(#)Makefile	5.8 (2.11BSD) 2025/3/7
  #
  # Bug report processor and associated programs
  #
  
! BUGS_NAME = bugs
! BUGS_HOME = @2BSD.COM
  DEFS = -DBUGS_NAME='"$(BUGS_NAME)"' -DBUGS_HOME='"$(BUGS_HOME)"'
  CFLAGS = -O -DUNIXCOMP $(DEFS)
  DESTDIR=
*** ./usr/src/man/man1/sendbug.1.old	Sun Dec 14 17:06:46 1986
--- ./usr/src/man/man1/sendbug.1	Fri Mar  7 21:02:59 2025
***************
*** 2,20 ****
  .\" All rights reserved.  The Berkeley software License Agreement
  .\" specifies the terms and conditions for redistribution.
  .\"
! .\"	@(#)sendbug.1	6.2 (Berkeley) 5/5/86
  .\"
! .TH SENDBUG 1 "May 5, 1986"
  .UC 5
  .ad
  .SH NAME
! sendbug \- mail a system bug report to 4bsd-bugs
  .SH SYNOPSIS
  .B sendbug [ address ]
  .SH DESCRIPTION
  .PP
- Bug reports sent to `4bsd-bugs@Berkeley.EDU' are intercepted
- by a program which expects bug reports to conform to a standard format.
  .I Sendbug
  is a shell script to help the user compose and mail bug reports
  in the correct format.
--- 2,18 ----
  .\" All rights reserved.  The Berkeley software License Agreement
  .\" specifies the terms and conditions for redistribution.
  .\"
! .\"	@(#)sendbug.1	6.3 (2.11BSD) 2025/3/7
  .\"
! .TH SENDBUG 1 "March 7, 2025"
  .UC 5
  .ad
  .SH NAME
! sendbug \- mail a system bug report
  .SH SYNOPSIS
  .B sendbug [ address ]
  .SH DESCRIPTION
  .PP
  .I Sendbug
  is a shell script to help the user compose and mail bug reports
  in the correct format.
***************
*** 25,36 ****
  appropriate fields and exit the editor.  The default editor is
  .IR vi (1).
  .I Sendbug
! then mails the completed report to `4bsd-bugs@Berkeley.EDU' or the address
  specified on the command line.
  .SH FILES
  .nf
! .ta \w'/usr/ucb/bugformat       'u
! /usr/ucb/bugformat	contains the bug report outline
  .fi
  .SH "SEE ALSO"
  vi(1),
--- 23,34 ----
  appropriate fields and exit the editor.  The default editor is
  .IR vi (1).
  .I Sendbug
! then mails the completed report to `bugs@2BSD.COM' or the address
  specified on the command line.
  .SH FILES
  .nf
! .ta \w'/usr/share/misc/bugformat       'u
! /usr/share/misc/bugformat	contains the bug report outline
  .fi
  .SH "SEE ALSO"
  vi(1),
*** ./VERSION.old	Fri Sep 27 19:17:59 2024
--- ./VERSION	Fri Mar  7 21:20:05 2025
***************
*** 1,5 ****
! Current Patch Level: 482
! Date: September 27, 2024
  
  2.11 BSD
  ============
--- 1,5 ----
! Current Patch Level: 483
! Date: March 7, 2025
  
  2.11 BSD
  ============
