mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
Fix build for GNU/Hurd by removing the PATH_MAX usage (#11816)
This commit is contained in:
parent
3bf4288577
commit
e2f1fe1da6
@ -206,11 +206,10 @@ R_API char *r_file_abspath(const char *file) {
|
||||
ret = strdup (file);
|
||||
}
|
||||
#if __UNIX__
|
||||
char resolved_path[PATH_MAX] = {0};
|
||||
char *abspath = realpath (ret, resolved_path);
|
||||
char *abspath = realpath (ret, NULL);
|
||||
if (abspath) {
|
||||
free (ret);
|
||||
ret = strdup (abspath);
|
||||
ret = abspath;
|
||||
}
|
||||
#endif
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user