Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2000 14:33:45 -0500 (EST)
From:      Seth <seth@aberrant.myip.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/16316: Enhancement: allow .fakeid to be a named pipe
Message-ID:  <200001231933.OAA03617@aberrant.myip.org>

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

>Number:         16316
>Category:       bin
>Synopsis:       Enhancement: allow .fakeid to be a named pipe
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 23 11:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Seth
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
>Environment:

3.4-STABLE as of 1/19/2000.

>Description:

	builtins.c checks to see whether .fakeid is a regular file and
won't touch it if it's not.  It would be great to use a named pipe here
so that random words could be inserted via the following (demo) script:


#!/bin/sh

fakeid=/home/user/.fakeid

rm -f $fakeid
mkfifo $fakeid
while [ 1 ]; do
  /usr/games/random 50000 < /usr/share/dict/words | head -1 > $fakeid
done

>How-To-Repeat:

  Try making .fakeid a named pipe... doesn't work.

>Fix:
	
  is the S_ISREG test absolutely necessary?  Can we add a check for pipes
  and allow them?  Would this introduce security risks?


>Release-Note:
>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?200001231933.OAA03617>