]> Zhao Yanbai Git Server - minix.git/commit
VFS: fix last_dir not returning last directory
authorThomas Veerman <thomas@minix3.org>
Tue, 21 Feb 2012 10:16:42 +0000 (10:16 +0000)
committerThomas Veerman <thomas@minix3.org>
Tue, 21 Feb 2012 10:22:45 +0000 (10:22 +0000)
commit93a8d9f26099bcdcc98360036b15b95af2aa8ce7
tree98eac0fa4fff340cf1bde157c69398531f6ee1b7
parent665ce9d4e1e04c568fb7c8347319d1ce71deeb89
VFS: fix last_dir not returning last directory

If the provided path was only a single component (i.e., without
slashes), then last_dir would return early and skip the symlink
detection (i.e., check whether the path ends in a symlink and resolve
that first before returning). This bug triggered an assert in open
which expects that an advance after an last_dir (with VMNT_WRITE lock)
does not yield another vmnt lock.
servers/vfs/path.c