]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Fix stat of relative symlinks
authorSam Lang <sam.lang@inktank.com>
Thu, 11 Oct 2012 17:16:02 +0000 (12:16 -0500)
committerSam Lang <sam.lang@inktank.com>
Wed, 17 Oct 2012 17:50:48 +0000 (12:50 -0500)
commitc68c516fe6fa071de5d24a3a2bd17a0cefe622c3
treec0c5ed62cafff8794e3bf77e5fe2d96b6508e7ce
parentb4bfade1c23bb316f465519d286249be11a9d88f
client: Fix stat of relative symlinks

Stat of symlinks that are relative to their location
would return -ENOENT because the symlink target is
being appended to the path rather than replacing it.
This fix replaces the symlink component with the path
of the symlink target (in the case that its a relative
symlink), and avoids updating the inode to point the
symlink (keeps at the parent).

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Client.cc