Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

ls : too many levels of symbolic links

2 réponses
Avatar
Eric S.
Bonjour,

J'ai dans un répertoire une liste de 13 liens symboliques :

file-20100321.tar.bz2 -> file-20100322.tar.bz2
file-20100322.tar.bz2 -> file-20100323.tar.bz2
file-20100323.tar.bz2 -> file-20100324.tar.bz2
file-20100324.tar.bz2 -> file-20100325.tar.bz2
file-20100325.tar.bz2 -> file-20100326.tar.bz2
file-20100326.tar.bz2 -> file-20100327.tar.bz2
file-20100327.tar.bz2 -> file-20100328.tar.bz2
file-20100328.tar.bz2 -> file-20100329.tar.bz2
file-20100329.tar.bz2 -> file-20100330.tar.bz2
file-20100330.tar.bz2 -> file-20100331.tar.bz2
file-20100331.tar.bz2 -> file-20100401.tar.bz2
file-20100401.tar.bz2 -> file-20100402.tar.bz2
file-20100402.tar.bz2

Le dernier (file-20100402.tar.bz2) est bien un fichier régulier.

Un ls dans ce répertoire me dit "Too many levels of symbolinks links"
pour les 4 premiers liens :

% ls file-*.tar.bz2
ls: file-20100321.tar.bz2: Too many levels of symbolic links
ls: file-20100322.tar.bz2: Too many levels of symbolic links
ls: file-20100323.tar.bz2: Too many levels of symbolic links
ls: file-20100324.tar.bz2: Too many levels of symbolic links
file-20100325.tar.bz2
file-20100326.tar.bz2
file-20100327.tar.bz2
file-20100328.tar.bz2
file-20100329.tar.bz2
file-20100330.tar.bz2
file-20100331.tar.bz2
file-20100401.tar.bz2
file-20100402.tar.bz2

Je travaille sur une Fedora Core 4 (Linux 2.6.17-1.2142_FC4).

Je voulais donc savoir s'il y avait une limite pour ce genre de chose ?
Je sais qu'un lien pointant sur lui-même provoque ce genre d'erreur.

Merci d'avance.
--
Eric S. [eservant chez gmail point com]

2 réponses

Avatar
Nicolas George
"Eric S." wrote in message :
Je voulais donc savoir s'il y avait une limite pour ce genre de chose ?



{SYMLOOP_MAX}
Maximum number of symbolic links that can be reliably traversed in the
resolution of a pathname in the absence of a loop.
Minimum Acceptable Value: {_POSIX_SYMLOOP_MAX}

{_POSIX_SYMLOOP_MAX}
The number of symbolic links that can be traversed in the resolution of
a pathname in the absence of a loop.
Value: 8

Bizarrement, les headers de la glibc publient _POSIX_SYMLOOP_MAX mais pas
SYMLOOP_MAX. Le noyau a dans namei.h :

enum { MAX_NESTED_LINKS = 8 };
Avatar
Eric S.
Nicolas George <nicolas$ [03-04-2010] :
"Eric S." wrote in message :
Je voulais donc savoir s'il y avait une limite pour ce genre de chose ?



{SYMLOOP_MAX}
Maximum number of symbolic links that can be reliably traversed in the
resolution of a pathname in the absence of a loop.
Minimum Acceptable Value: {_POSIX_SYMLOOP_MAX}

{_POSIX_SYMLOOP_MAX}
The number of symbolic links that can be traversed in the resolution of
a pathname in the absence of a loop.
Value: 8

Bizarrement, les headers de la glibc publient _POSIX_SYMLOOP_MAX mais pas
SYMLOOP_MAX. Le noyau a dans namei.h :

enum { MAX_NESTED_LINKS = 8 };



OK, merci.
--
Eric S. [eservant chez gmail point com]