Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2000 15:32:47 -0700 (PDT)
From:      patl@Phoenix.Volant.ORG
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        hackers@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: "!.*" [ was: Fdescfs updates--coming to a devfs near you! ]
Message-ID:  <ML-3.4.968970767.9882.patl@asimov.phoenix.volant.org>
In-Reply-To: <56645.968935026@critter>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14-Sep-00 at 05:37, Poul-Henning Kamp (phk@critter.freebsd.dk) wrote:
> >You think adding a hack to every program to support "-" to mean
> >stdout/stdin is better?
> 
> The majority of these programs could be handled by adding knowledge
> of "-" as a magic filename to fopen(3).
> 
> At the same time I would really love if we implemented "|.*" to mean
> "do an popen(3)" instead.

Isn't that potentially a huge security hole in every program that
gets a filename from an external source?

> But of course, this is bikeshed material...
> 
> >> If anything I would propose we ditch it...
> >
> >And break loads of scripts at the same time?
> 
> I would argue that the programs and the scripts that call them are
> already broken, but hey...

And I would argue that the fdescfs is cleaner than the '-' hack.
(Which, by the way, should not be considered a filename hack so
much as a command-line-parameter hack; since it was invented before
there was a way to say 'use stdin/stdout' on the command-line...
You could think of '/dev/stdin' as "'-' version 2")


-Pat


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




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