From owner-freebsd-standards Tue Mar 19 1:56:37 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id AD12037B400 for ; Tue, 19 Mar 2002 01:56:34 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g2J9u8t23208; Tue, 19 Mar 2002 10:56:08 +0100 (MET) Date: Tue, 19 Mar 2002 10:56:08 +0100 (CET) From: Harti Brandt To: Peter Pentchev Cc: "Tim J. Robbins" , Subject: Re: standards/36076: Implementation of POSIX fuser command In-Reply-To: <20020319110634.H9136@straylight.oblivion.bg> Message-ID: <20020319105215.O62790-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 19 Mar 2002, Peter Pentchev wrote: PP>On Tue, Mar 19, 2002 at 12:10:03AM -0800, Tim J. Robbins wrote: PP>> On Mon, Mar 18, 2002 at 10:38:42PM -0500, Garrett Wollman wrote: PP>> PP>> > This script breaks when the argument to -M contains shell field PP>> > separators. PP>> PP>> Thanks for the info; here is an updated version of the script that PP>> fixes this problem, as well as a problem in the output format caused PP>> by my misreading of the standard (the output is the same as Solaris now, PP>> except that it seems to use tabs where I use spaces). PP> PP>I must admit that I am a bit wary of having a shell script wrapper; PP>there are many ways a shell command could go wrong - field separators, PP>backticks, variable expansions... IMVHO, a Perl script might make PP>things a bit more secure. What do others think? Nice move to start a bikeshed... Any script in any language can go wrong if badly written. If correctly written shell scripts are by no means more insecure than perl scripts. And they don't depend on perl beeing installed :-) It would be helpful if you'd name your concrete concerns with Tim's script. Regards, harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message