summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/filesystem-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/filesystem-app.c')
-rw-r--r--firmware/target/hosted/filesystem-app.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c
index 9c2ff8c99b..cfe4e65fe9 100644
--- a/firmware/target/hosted/filesystem-app.c
+++ b/firmware/target/hosted/filesystem-app.c
@@ -43,6 +43,10 @@
43#undef PIVOT_ROOT 43#undef PIVOT_ROOT
44#endif 44#endif
45 45
46#if defined(DBTOOL)
47#define PIVOT_ROOT "."
48#endif
49
46#if defined(__PCTOOL__) 50#if defined(__PCTOOL__)
47/* We don't want this for tools */ 51/* We don't want this for tools */
48#undef HAVE_SPECIAL_DIRS 52#undef HAVE_SPECIAL_DIRS
@@ -222,7 +226,7 @@ const char * handle_special_dirs(const char *dir, unsigned flags,
222#define PIVOT_ROOT_LEN (sizeof(PIVOT_ROOT)-1) 226#define PIVOT_ROOT_LEN (sizeof(PIVOT_ROOT)-1)
223 /* Prepend root prefix to find actual path */ 227 /* Prepend root prefix to find actual path */
224 if (strncmp(PIVOT_ROOT, dir, PIVOT_ROOT_LEN) 228 if (strncmp(PIVOT_ROOT, dir, PIVOT_ROOT_LEN)
225#ifdef MULTIDRIVE_DIR 229#if defined(MULTIDRIVE_DIR) && defined(MULTIDRIVE_DIR_LEN)
226 /* Unless it's a MULTIDRIVE dir, in which case use as-is */ 230 /* Unless it's a MULTIDRIVE dir, in which case use as-is */
227 && strncmp(MULTIDRIVE_DIR, dir, MULTIDRIVE_DIR_LEN) 231 && strncmp(MULTIDRIVE_DIR, dir, MULTIDRIVE_DIR_LEN)
228#endif 232#endif