Commit 103170ac authored by Ramon Nou's avatar Ramon Nou
Browse files

Merge branch 'rnou/358-bugfix-realpath-libc' into 'master'

Resolve "bugfix realpath (libc)"

Closes #358

Closes #358

See merge request !253
parents 5a7e4401 3e792be5
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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) {