Change into the root dir of the FS directly after mounting.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11585 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -46,6 +46,13 @@ init_fs(char *disk_name)
|
||||
printf("could not mount %s on /myfs\n", disk_name);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
err = sys_chdir(1, -1, "/myfs");
|
||||
if (err != 0) {
|
||||
printf("Failed to cd into /myfs.");
|
||||
sys_unmount(1, -1, "/myfs");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user