From: mdw@theory.TC.Cornell.EDU (Matt Welsh) Subject: Re: Directory rename FX Date: Fri, 12 Feb 1993 00:56:37 GMT
In article <1lek9f$5g5@smurf.sub.org> urlichs@smurf.sub.org (Matthias Urlichs) writes:
>Renaming a directory seems to cause an inconsistency in the kernel:
>
>$ cd /tmp ; mkdir x ; cd x
>$ (cd ../ mv x y )
>$ cd .
>.: No such file or directory
>$ ls -lid . ../y
> 7784 drwxr-xr-x 2 root system 32 Feb 12 00:28 .
> 7784 drwxr-xr-x 2 root system 32 Feb 12 00:28 ../y
>$ cd ../y
>$ cd .
>$
>This is 0.99.5, Minix FS.
Well, I just tried the same on SunOS 4.1.3...
theory% cd tmp
theory% mkdir x ; cd x
theory% (cd ../; mv x y)
theory% cd .
.: No such file or directory
theory% ls -lid . ../y
62869 drwxr-xr-x 2 mdw 512 Feb 11 19:54 .
62869 drwxr-xr-x 2 mdw 512 Feb 11 19:54 ../y
theory% cd ../y
theory% cd .
theory%
Same behaviour. What's the problem?
mdw
-- Matt Welsh, mdw@tc.cornell.edu "What are you doing, Dave?"