diff --git a/tools/introspection.c b/tools/introspection.c index b5235f8e..cab1ded8 100644 --- a/tools/introspection.c +++ b/tools/introspection.c @@ -1825,8 +1825,10 @@ extract_ulp_from_so_to_mem(const char *livepatch, bool revert, char **out, /* Get full path to patch buffer. */ if (realpath(livepatch, &path_buffer[path_size]) == NULL) { - WARN("Unable to retrieve realpath to %s", livepatch); - return 0; + /* If we can't figure out the realpath, then use the path it was given to + us. */ + DEBUG("Unable to retrieve realpath to %s: %s", livepatch, libpulp_strerror(errno)); + strcpy(&path_buffer[path_size], livepatch); } path_size = strlen(path_buffer) + 1;