• Al Viro's avatar
    bail out with ELOOP earlier in do_link loop · c99658fe
    Al Viro authored
    If we'd passed through 32 trailing symlinks already, there's
    no sense following the 33rd - we'll bail out anyway.  Better
    bugger off earlier.
    
    It *does* change behaviour, after a fashion - if the 33rd happens
    to be a procfs-style symlink, original code *would* allow it.
    This one will not.  Cry me a river if that hurts you.  Please, do.
    And post a video of that, while you are at it.
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    c99658fe
namei.c 71.2 KB