9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b89a2517b0b0c28b5080e5b28aed34f3c3949da0
parent 3004554a3a115044221ca01c06fcdd5c646df04a
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Wed, 21 Nov 2018 14:25:35 +0000

[fs] Initialize cwd to /

Change-Id: I968f223ca2fe8c5ab0daa094713b5f8e1938afa3
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Msrc/romfw/fs.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/romfw/fs.c b/src/romfw/fs.c @@ -324,5 +324,7 @@ initfs(const struct tree *tree) for (p = tree; p->name; ++p) { if (create(p->name, p->flags) < 0) panic("initfs"); - } + } + + chdir("/"); }