From c3dbe62619cf35c94f43cc3340a55c04f5a3bc97 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 10 Nov 2009 10:51:08 +0000 Subject: [PATCH] _user_open_dir(): Allow a NULL path to be passed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33973 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index e1e0955722..2ce2fa4e07 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -8554,6 +8554,9 @@ _user_open_dir_entry_ref(dev_t device, ino_t inode, const char* userName) int _user_open_dir(int fd, const char* userPath) { + if (userPath == NULL) + return dir_open(fd, NULL, false); + KPath path(B_PATH_NAME_LENGTH + 1); if (path.InitCheck() != B_OK) return B_NO_MEMORY;