Subject: Re: Addition to force open to open only regular files
To: Noriyuki Soda <>
From: Bill Studenmund <>
List: tech-kern
Date: 11/29/2000 14:20:06
On Wed, 29 Nov 2000, Noriyuki Soda wrote:

> Why aren't you satisfied with the following pseudo code?
> (If setreuid() is deprecated, the following code should work.)
> 	euid = geteuid();
> 	if (getuid() != euid)
> 		seteuid(getuid());
> 	fp = fopen($HOSTALIASES, "r");
> 	if (geteuid() != euid)
> 		seteuid(getuid());
> Do you want to preserve setreuid()? If so, why?

Because we have it for standards compliance, we'd like to keep it. We'd
also like to make life with it safe.

Take care,