Re: Kernel 2.2.17 bug found

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Thu Nov 09 2000 - 11:00:22 EST


On Thu, 9 Nov 2000, Andrea Pintori wrote:

> I've a Debian dist, Kernel 2.2.17, no patches, all packages are stable.
>
> here what I found:
>
> [/tmp] mkdir old
> [/tmp] chdir old
> [/tmp/old] mv . ../new
> [/tmp/old] (should be /tmp/new !!)

The shell might not read this all the while so the name you see
may not change until you change directory.

> [/tmp/old] mkdir fff
> error: cannot write...

This should not happen and it doesn't happen in kernel version 2.4.0-test0

> [tmp/old] ls > fff
> error: cannot write...
> [/tmp/old] ls -la
> total 0 (?)
> [/tmp/old] cd ..
> [/tmp] ls -la
> ***************** ./
> ***************** ../
> ***************** new/
>

Script started on Thu Nov 9 10:45:35 2000
# pwd
/tmp
# mkdir old
# cd old
# pwd
/tmp/old
# mv ../old ../new
# pwd
/tmp/old The shell hasn't re-read the current directory
# ls
# >foo Make a file called foo
# ls
foo It's there okay
# rm foo Remove the file
# mkdir bar Make a directory
# ls
bar It's there
# cd bar
# pwd
/tmp/new/bar Now, the shell re-read the directory, it is correct
# cd ..
# pwd
/tmp/new Back where we were, shell reads correct directory.
# cd ..
# ls
new typescript
# rm -r new
# exit
exit

Script done on Thu Nov 9 10:47:23 2000

Cheers,
Dick Johnson

Penguin : Linux version 2.4.0 on an i686 machine (799.54 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:14 EST