Re: Duplicate '..' in /lib

Adam (adam@eax.com)
Mon, 16 Jul 2001 00:11:39 -0500 (EST)


> I just found a pair of '..' directories in the /lib directory. e2fsck 1.19
> didn't even pick up on this!
> /lib
> 4 drwxr-xr-x 19 root root 4096 Jun 9 16:06 ..
> 4 -rw-rw-r-- 1 root root 27 Jun 9 15:55 ..
>
> How can I get rid of this? I'm on kernel 2.2.19, running on sparc-linux.

first it is not a pair directories, but a directory and a file.

second, are you sure both of the mare just ".." for example

eax /tmp % touch ".. "
eax /tmp % ls -la | grep "\.\."
drwxr-xr-x 23 root root 1024 Sep 16 2000 ..
-rw-rw-r-- 1 adam adam 0 Jul 16 01:09 ..

so use 'od' to see what the filename is composed of:

eax /tmp % ls -la | grep "\.\." | od -a
. . sp nl

-- 
Adam
http://www.eax.com      The Supreme Headquarters of the 32 bit registers

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