From nobody  Sun Dec 20 13:01:14 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id NAA21199;
          Sun, 20 Dec 1998 13:01:14 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199812202101.NAA21199@hub.freebsd.org>
Date: Sun, 20 Dec 1998 13:01:14 -0800 (PST)
From: dennis.glatting@software-munitions.com
To: freebsd-gnats-submit@freebsd.org
Subject: 3.0's periodic tries to execute directories
X-Send-Pr-Version: www-1.0

>Number:         9147
>Category:       misc
>Synopsis:       3.0's periodic tries to execute directories
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 20 13:10:01 PST 1998
>Closed-Date:    Tue Dec 29 14:49:01 PST 1998
>Last-Modified:  Tue Dec 29 14:49:55 PST 1998
>Originator:     Dennis Glatting
>Release:        3.0
>Organization:
Software Munitions
>Environment:
FreeBSD btw 3.0-RELEASE FreeBSD 3.0-RELEASE #2: Thu Dec  3 22:00:00 PST 1998     root@btw:/ExternalDisk/FreeBSD-btw-3.x/src/sys/compile/BTW  i386

>Description:
The script /usr/sbin/periodic attempts to execute anything with 
an executable set, including directories. The result is an annoying
error message saying "CVS permission denied," in the case of 
running the daily or weekly scripts.
>How-To-Repeat:
Simply run "periodic weekly"
>Fix:
The following is a patch. It simply ands the execute bit logic with
"but not a directory" logic.



*** /usr/sbin/periodic	Wed Nov 25 19:27:15 1998
--- periodic	Sun Dec 20 12:54:29 1998
***************
*** 57,63 ****
  
  for dir in $dirlist ; do
      for file in $dir/* ; do
! 	if [ -x $file ] ; then
  	    $file
  	fi
      done
--- 57,63 ----
  
  for dir in $dirlist ; do
      for file in $dir/* ; do
! 	if [ -x $file -a ! -d $file ] ; then
  	    $file
  	fi
      done

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Tue Dec 29 14:49:01 PST 1998 
State-Changed-Why:  
Patch applied, r.1.6 periodic.sh 
>Unformatted:
