From owner-freebsd-bugs Sun Dec 20 13:10:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA21512 for freebsd-bugs-outgoing; Sun, 20 Dec 1998 13:10:01 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA21456 for ; Sun, 20 Dec 1998 13:09:59 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from Unknown UID 563@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA02772; Sun, 20 Dec 1998 13:10:01 -0800 (PST) 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 X-Send-Pr-Version: www-1.0 Subject: misc/9147: 3.0's periodic tries to execute directories Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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