• Duane Griffin's avatar
    ufs: don't truncate longer ufs2 fast symlinks · f33219b7
    Duane Griffin authored
    ufs2 fast symlinks can be twice as long as ufs ones, however the code
    was using the ufs size in various places. Fix that so ufs2 symlinks over
    60 characters aren't truncated.
    
    Note that we copy the entire area instead of using the maxsymlinklen field
    from the superblock. This way we will be more robust against corruption (of
    the superblock).
    
    While we are at it, use memcpy instead of open-coding it with for loops.
    Signed-off-by: default avatarDuane Griffin <duaneg@dghda.com>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    f33219b7
inode.c 25.8 KB