diff --git a/src/client/gkfs_libc.cpp b/src/client/gkfs_libc.cpp index 4584c4deb2b6459366430afaa5c12cfa2a8cbbf6..a25294234390fe86b7d86f46db379150e74e76a2 100644 --- a/src/client/gkfs_libc.cpp +++ b/src/client/gkfs_libc.cpp @@ -1908,7 +1908,10 @@ realpath(const char* path, char* resolved_path) { // provided smaller, this check is tricky. Assuming PATH_MAX // is sufficient. } - strcpy(resolved_path, resolved_str_internal.c_str()); + // we should return the full path (CTX->mountdir() + + // resolved_str_internal) + strcpy(resolved_path, + (CTX->mountdir() + resolved_str_internal).c_str()); return resolved_path; } else if(status == PathStatus::Error) {