Subject: misc/14957: find in /etc/daily and /etc/security should skip nullfs
To: None <gnats-bugs@gnats.netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: netbsd-bugs
Date: 12/15/2001 16:55:06
>Number:         14957
>Category:       misc
>Synopsis:       find in /etc/daily and /etc/security should skip nullfs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 15 06:57:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alan Barrett
>Release:        NetBSD 1.5Y
>Organization:
Not much
>Environment:
>Description:
        Some of the find commands that are run from /etc/daily and
        /etc/security can safely be changed to ignore nullfs file
        systems, since all the files in the nullfs layer will also
        appear in another file system that does not get skipped by the
        find command.
>How-To-Repeat:
	Code inspection
>Fix:
Index: etc/daily
--- daily	2001/11/23 04:20:27	1.42
+++ daily	2001/11/25 11:41:55
@@ -79,6 +79,7 @@
 
 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
Index: etc/security
--- security	2001/11/09 09:01:20	1.73
+++ security	2001/11/19 10:25:29
@@ -568,6 +568,7 @@
 if checkyesno check_devices; then
 	> $ERR
 	(find / \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \
+			-o -fstype null \
 			-o -fstype procfs \) -a -prune -o \
 	    \( \( -perm -u+s -a ! -type d \) -o \
 	       \( -perm -g+s -a ! -type d \) -o \
>Release-Note:
>Audit-Trail:
>Unformatted: