Site icon EfmSoft

What does errno 40 (ELOOP) mean?

 
Could be also:
ConstantTypeOS
KERN_LOCK_OWNEDKern returnMac
ippStsWrongIntersectVOIIntel Ipp StatusAny
EMSGSIZEerrnoMac
EL3RSTerrnoSolaris
ENOSYSerrnoWindows
CORRUPT_ACCESS_TOKENBugCheck CodeWindows
Previous Next
ENOLCK EMSGSIZE

ELOOP

Two meanings of the same errno

ELOOP usually means that resolving a pathname followed too many symbolic links, often because one link eventually points back to an earlier location. Linux limits the number of symlink traversals during path resolution, so a very long acyclic chain can fail as well. The error can also be intentional: open() with O_NOFOLLOW may use it to reject a symbolic link in the final path component.

This makes the error useful for security-sensitive code. A service that accepts path input should not “fix” it by silently following more links or stripping prefixes. That can turn a malformed path into a path traversal problem, especially in writable directories shared with less-trusted users.

What to inspect

References


Looking for a different code? Search another status or error code.

Exit mobile version