From owner-freebsd-hackers Fri Aug 14 09:49:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24737 for freebsd-hackers-outgoing; Fri, 14 Aug 1998 09:49:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24703 for ; Fri, 14 Aug 1998 09:48:50 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id JAA06288; Fri, 14 Aug 1998 09:48:06 -0700 (PDT) (envelope-from jdp) Message-Id: <199808141648.JAA06288@austin.polstra.com> To: volf@oasis.IAEhv.nl Subject: Re: File permissions in CVS tree obtained using CTM In-Reply-To: <199808112051.UAA00914@avalon.oasis.IAEhv.nl> References: <199808112051.UAA00914@avalon.oasis.IAEhv.nl> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Date: Fri, 14 Aug 1998 09:48:06 -0700 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199808112051.UAA00914@avalon.oasis.IAEhv.nl>, Frank Volf wrote: > A more theoretical question would be: can we safely rely on the file > permissions on the CVS tree, or should we take precautions (in this case > use the Makefile to set execute permissions on the checkout files, > before running them). Historically, the execute bits have had a tendency to dissolve from the repository over time. :-) You should not count on them being set properly. The only things in the repository that might need to be "executed" are scripts. There aren't any program binaries there. The best way to execute shell scripts is with "sh foo". (For ports only, there is a make macro ${SH} defined.) For perl, awk, and tcl scripts, do the analogous thing -- invoke the interpreter explicitly. -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message