From 1dae20235b44f439972342eee60b3d726d36f44b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 8 Sep 2004 21:31:18 +0000 Subject: [PATCH] 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 --- src/kernel/core/fs/rootfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/core/fs/rootfs.c b/src/kernel/core/fs/rootfs.c index e1fcaaded7..779468555d 100755 --- a/src/kernel/core/fs/rootfs.c +++ b/src/kernel/core/fs/rootfs.c @@ -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;