Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Dec 1998 13:01:14 -0800 (PST)
From:      dennis.glatting@software-munitions.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   misc/9147: 3.0's periodic tries to execute directories
Message-ID:  <199812202101.NAA21199@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         9147
>Category:       misc
>Synopsis:       3.0's periodic tries to execute directories
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 20 13:10:01 PST 1998
>Last-Modified:
>Originator:     Dennis Glatting
>Organization:
Software Munitions
>Release:        3.0
>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

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812202101.NAA21199>