[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Infinite loop on symlinks.] don't we need to check the dev?
From: |
Sam Roberts |
Subject: |
Re: [Infinite loop on symlinks.] don't we need to check the dev? |
Date: |
Sat, 16 Feb 2002 11:14:21 -0500 |
User-agent: |
Mutt/1.3.16i |
Hi Sergey,
Building a linked list on that stack is clever, I don't recall
seeing that before.
Since inodes aren't unique across devices, don't you need to check
both dev and inode?
Sam
Quoting Jeff Bailey <address@hidden>, who wrote:
> ----- Forwarded message from Norbert Veber <address@hidden> -----
>
> Subject: Bug#134330: mailutils-imap4d: Infinite loop on symlinks.
>
> Package: mailutils-imap4d
> Version: 20011103-1.1
> Severity: important
>
> In my directory, I have this:
> address@hidden:~/.gnome-desktop]$ ls -al
> total 20
> drwxr-xr-x 3 nveber nveber 4096 Feb 14 21:41 .
> drwx--x--x 111 nveber nveber 8192 Feb 16 21:11 ..
> lrwxrwxrwx 1 nveber nveber 6 Feb 14 21:39 cdrom -> /cdrom
> lrwxrwxrwx 1 nveber nveber 7 Feb 14 21:39 fd0 -> /floppy
> lrwxrwxrwx 1 nveber nveber 12 Feb 14 21:39 Home directory
> -> /home/nveber
> -rwxr-xr-x 1 nveber nveber 90 Jan 2 20:26 moviecd.sh
> drwx------ 2 nveber nveber 4096 Feb 14 21:47 Trash.gmc
>
> When getting the list of folders from the imap server, it enters into an
> infite loop while listing the contents of my directory because of the symlink
> that points back to my directory. An strace shows its reading the same
> directory over and over and over..
>
> -- System Information
> Debian Release: 3.0
> Architecture: i386
> Kernel: Linux pyre 2.4.17 #2 Sun Dec 23 16:22:24 EST 2001 i686
> Locale: LANG=en_US, LC_CTYPE=en_US
>
> Versions of packages mailutils-imap4d depends on:
> ii libc6 2.2.5-3 GNU C Library: Shared libraries
> an
> ii libmailutils0 20011103-1.1 GNU Mail Abstraction library
> ii libpam0g 0.72-35 Pluggable Authentication Modules
> l
> ii netbase 4.07 Basic TCP/IP networking system
--
Sam Roberts <address@hidden> (Vivez sans temps mort!)
dev.diff
Description: Text document