If the /..' is /' then the name of the root node should consequently be

`.'. This fixes the _kern_open_parent_dir() syscall for the root directory.

I realized, that rootfs_read_dir() doesn't return the entries `.' and `..',
unlike Be's rootfs. Shall I add those, Axel?


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2004-09-08 21:31:18 +00:00
parent 1c448f3551
commit 1dae20235b

View File

@ -305,7 +305,7 @@ rootfs_mount(mount_id id, const char *device, void *args, fs_volume *_fs, vnode_
}
// create the root vnode
vnode = rootfs_create_vnode(fs, "", STREAM_TYPE_DIR);
vnode = rootfs_create_vnode(fs, ".", STREAM_TYPE_DIR);
if (vnode == NULL) {
err = B_NO_MEMORY;
goto err3;