Subject: Re: kern/35675: magiclinks implementation broken
To: None <gnats-bugs@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 02/18/2007 03:55:45
> 	Now let's try to show how I found that magiclinks is broken:
> 
> [juan@nocturno][~/mkstemp]> mkdir blah
> [juan@nocturno][~/mkstemp]> ./test blah
> blah/test.01190a created
> [juan@nocturno][~/mkstemp]> ln -s blah/@uid foo
> [juan@nocturno][~/mkstemp]> file foo
> foo: broken symbolic link to `blah/@uid'
> [juan@nocturno][~/mkstemp]> ./test foo/
> test: not a directory or symlink to directory
> [juan@nocturno][~/mkstemp]> echo lalala > foo
> [juan@nocturno][~/mkstemp]> cat foo
> lalala
> [juan@nocturno][~/mkstemp]> ls -l
> total 48
> -rw-r--r--  1 juan  wheel    48 Feb 14 21:49 Makefile
> drwxr-xr-x  2 juan  wheel   512 Feb 17 19:23 blah
> lrwxr-xr-x  1 juan  wheel     9 Feb 17 19:23 foo -> blah/@uid
> -rwxr-xr-x  1 juan  wheel  6424 Feb 17 19:22 test
> -rw-r--r--  1 juan  wheel   707 Feb 14 21:23 test.c
> -rw-r--r--  1 juan  wheel  1520 Feb 17 19:22 test.o
> [juan@nocturno][~/mkstemp]> file foo
> foo: broken symbolic link to `blah/@uid'
> [juan@nocturno][~/mkstemp]> ls -l blah
> total 8
> -rw-r--r--  1 juan  wheel  7 Feb 17 19:23 1000
> -rw-------  1 juan  wheel  0 Feb 17 19:23 test.01190a
> [juan@nocturno][~/mkstemp]> cat blah/1000
> lalala
> [juan@nocturno][~/mkstemp]>
> 
> 	See how a file called 1000 was created in the blah
> 	directory... hmmm.

which part of the above do you think broken?

YAMAMOTO Takashi