summaryrefslogtreecommitdiffstats
path: root/uisimulator/common/filesystem-sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/filesystem-sim.c')
-rw-r--r--uisimulator/common/filesystem-sim.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/common/filesystem-sim.c b/uisimulator/common/filesystem-sim.c
index 8d7fb14931..f4f6321b7d 100644
--- a/uisimulator/common/filesystem-sim.c
+++ b/uisimulator/common/filesystem-sim.c
@@ -309,6 +309,8 @@ int sim_get_os_path(char *buffer, const char *path, size_t bufsize)
const char *next;
volume = path_strip_volume(p, &next, true);
+ if (volume == ROOT_VOLUME)
+ volume = 0; /* FIXME: root no longer implies volume 0 */
if (next > p)
{
@@ -841,3 +843,8 @@ int os_volume_path(IF_MV(int volume, ) char *buffer, size_t bufsize)
return sim_get_os_path(buffer, tmpbuf, bufsize);
}
+
+const char* sim_root_realpath(void)
+{
+ return PATH_ROOTSTR;
+}