]> 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:21:05 +0000 (10:21 +0000)
commit0c1cd8720a6ae7e7f0e9d4f9396b8cff02bc55b7
tree81ac1da1ea014654440d7aa31dc7f63536070a47
parentd25ded6d3d61daac4e32fec377033143be4d8449
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