Small bug in /etc/swapon

dan at rna.UUCP dan at rna.UUCP
Mon Jan 30 15:13:19 AEST 1984



Subject:
	/etc/swapon -a prints
		No such device: (garbage)
	when trying to swapon a bad entry in /etc/fstab
Index:	etc/swapon.c 4.2BSD

Description:
	Missing argument to printf.
Repeat-By:
	/etc/swapon -a with
	a bad swap device entry in /etc/fstab
Fix:
*** swapon.c.org	Sun Jan 29 23:28:03 1984
--- swapon.c	Sun Jan 29 23:28:36 1984
***************
*** 30,32
  				printf("%s: %s\n",
! 				    sys_errlist[errno]);
  				stat = 1;

--- 30,32 -----
  				printf("%s: %s\n",
! 				    sys_errlist[errno], fsp->fs_spec);
  				stat = 1;

***************
				Cheers,
				Dan Ts'o
				...cmcl2!rna!dan



More information about the Comp.unix.wizards mailing list