X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/fdb8e4aac282b72d4670aa3a26d9bba07afc7e6f..1c15e88899094343f75aeba04122cd96a96b428e:/usr/src/sbin/fsck/main.c diff --git a/usr/src/sbin/fsck/main.c b/usr/src/sbin/fsck/main.c index c100da887c..e93fcb5c4d 100644 --- a/usr/src/sbin/fsck/main.c +++ b/usr/src/sbin/fsck/main.c @@ -2,7 +2,19 @@ * Copyright (c) 1980, 1986 The Regents of the University of California. * All rights reserved. * - * %sccs.include.redist.c% + * Redistribution and use in source and binary forms are permitted provided + * that: (1) source distributions retain this entire copyright notice and + * comment, and (2) distributions including binaries display the following + * acknowledgement: ``This product includes software developed by the + * University of California, Berkeley and its contributors'' in the + * documentation or other materials provided with the distribution and in + * all advertising materials mentioning features or use of this software. + * Neither the name of the University nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef lint @@ -12,7 +24,7 @@ char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)main.c 5.27 (Berkeley) %G%"; +static char sccsid[] = "@(#)main.c 5.26 (Berkeley) 7/20/90"; #endif /* not lint */ #include @@ -93,7 +105,7 @@ main(argc, argv) (void)signal(SIGQUIT, catchquit); if (argc) { while (argc-- > 0) - (void)checkfilesys(*argv++, (char *)0, 0L, 0); + (void)checkfilesys(*argv++, (char *)0, 0L); exit(0); } ret = checkfstab(preen, maxrun, docheck, checkfilesys); @@ -135,7 +147,7 @@ docheck(fsp) * Check the specified filesystem. */ /* ARGSUSED */ -checkfilesys(filesys, mntpt, auxdata, child) +checkfilesys(filesys, mntpt, auxdata) char *filesys, *mntpt; long auxdata; { @@ -143,8 +155,7 @@ checkfilesys(filesys, mntpt, auxdata, child) struct dups *dp; struct zlncnt *zlnp; - if (preen && child) - (void)signal(SIGQUIT, voidquit); + (void)signal(SIGQUIT, voidquit); devname = filesys; if (debug && preen) pwarn("starting\n");