]> Zhao Yanbai Git Server - minix.git/commit
AVFS: Return actual last dir when path is named by a symlink
authorThomas Veerman <thomas@minix3.org>
Thu, 12 Jan 2012 11:32:31 +0000 (11:32 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 16 Jan 2012 10:12:29 +0000 (10:12 +0000)
commite6c98c3c55fedb3e40e23c6a01afa9efd2c730f2
treefba2f1e5d8439b3f89c52b464b42a9c063b06461
parentc89aaf7a87468ee6932e59557fd8d82200cd1830
AVFS: Return actual last dir when path is named by a symlink

Last_dir didn't consider paths that end in a symlink and hence didn't
actually return the last_dir when provided with one. For example,
/var/log is a symlink to /usr/log. Issuing `>/var/log' would trigger
an assert in AVFS, because /var/ is not the actual last directory; /usr/
is.

Last_dir now verifies the final component is not a symlink. If it is, it
follows the symlink and restarts finding of the last the directory.
servers/avfs/link.c
servers/avfs/open.c
servers/avfs/path.c