pre9/final-Bug, introduced in pre8

Kurt Huwig (kurt@huwig.de)
Sun, 24 Jan 1999 21:36:07 +0100


Hello!

I narrowed down my problem and it was introduced in pre8:

Compile this code

---- cut here ----
#include <fcntlbits.h>
void main( int argc, char *argv[] ) {
open( argv[ 1 ], O_WRONLY|O_CREAT|O_TRUNC, 0666 );
}
---- and here ----

and run it like this

strace ./a.out >(cat - )

with 2.0.36 & 2.2.0-pre[67] you get:

open("/dev/fd/63", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3

with 2.2.0-pre[89] you get:

open("/dev/fd/63", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No
such file or directory)

Something like this is used by 'apsfilter' together with 'gs', so it
looks like a showstopper; at least I cannot print with these kernels :-(

System is SuSE 6.0 glibc; GNU bash, version 2.02.1(1)-release
(i586-pc-linux-gnu)

I tried to track it down, but the pre8-patch is quite huge. The only
thing I found out is that it seems not to be the change in

fs/proc/array.c
fs/proc/root.c

as I tried the ones from pre7 in a pre8 kernel, but anyway I don't know
much about this.

Kurt
http://www.linuxmama.com/
---------------------------------------------------------------
Win-Installation: How often do YOU want to boot today?

:.˛mkabzwmb˛mbz_^nrzh&zvy杶ii