When finding core files, only print the names of things that are trunk
authoratatat <atatat@NetBSD.org>
Tue, 04 Feb 2003 05:31:18 +0000
branchtrunk
changeset 108298 21b319336671
parent 108297 70866b98279b
child 108299 2cbe5dd5bb80
When finding core files, only print the names of things that are *files*, (ie, not directories, or symlinks, or...). Also remove the -a instances. They're implicit.
etc/daily
--- a/etc/daily	Tue Feb 04 05:24:51 2003 +0000
+++ b/etc/daily	Tue Feb 04 05:31:18 2003 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.47 2002/12/25 02:41:03 grant Exp $
+#	$NetBSD: daily,v 1.48 2003/02/04 05:31:18 atatat Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -80,9 +80,9 @@
 if checkyesno find_core; then
 	find / \( ! -fstype local -o -fstype rdonly -o -fstype fdesc \
 		-o -fstype null \
-		-o -fstype kernfs -o -fstype procfs \) -a -prune -o \
-		-name 'lost+found' -a -prune -o \
-		\( -name '*.core' -o -name 'core' \) -a -print > $TMP
+		-o -fstype kernfs -o -fstype procfs \) -prune -o \
+		-name 'lost+found' -prune -o \
+		\( -name '*.core' -o -name 'core' \) -type f -print > $TMP
 #		\( -name '[#,]*' -o -name '.#*' -o -name a.out \
 #		   -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
 #			-a -atime +3 -exec rm -f -- {} \; -a -print > $TMP