#76 SshFS -- bug in readlink()

open
Florin Malita
None
5
2004-05-14
2003-12-17
Juhan Kundla
No

The readlink() function does not resolve correctly soft links
pointing outside of SSH file system.

Example:

user@sshclient $ ln -s /etc/hostname /sshfs/hostname
user@sshclient $ ls -l /sshfs/hostname
lrwxrwxrwx 1 user user 13 dets 17 2003 /sshfs/
hostname -> invalid
user@sshclient $ echo "This is a bug" > /sshfs/invalid
user@sshclient $ cat /sshfs/hostname
This is a bug

On the SSH server the softlink points correctly to the /etc/
hostname file.

Discussion

  • Juhan Kundla
    Juhan Kundla
    2004-05-14

    • assigned_to: nobody --> mali