Skip to content

v5.0.x: hurd: Fix build #13066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ompi/mca/fs/base/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ static inline bool mca_fs_base_is_link (const char *filename)
static inline void mca_fs_base_get_real_filename (const char *filename, char **rfilename)
{
int namelen;
char linkbuf[PATH_MAX+1];
char linkbuf[OPAL_PATH_MAX+1];

namelen = readlink(filename, linkbuf, PATH_MAX);
namelen = readlink(filename, linkbuf, OPAL_PATH_MAX);
if (namelen == -1) {
/* something strange has happened between the time that
* we determined that this was a link and the time that
Expand Down
2 changes: 1 addition & 1 deletion oshmem/mca/memheap/base/memheap_base_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int mca_memheap_base_static_init(mca_memheap_map_t *map)
uint64_t offset;
char dev[8];
uint64_t inode;
char pathname[MAXPATHLEN];
char pathname[OPAL_PATH_MAX];
FILE *fp;
char line[1024];
map_segment_t *s;
Expand Down
4 changes: 2 additions & 2 deletions test/util/opal_os_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ static bool test3(void)

static bool test4(void)
{
char a[MAXPATHLEN + 10];
char a[OPAL_PATH_MAX + 10];
int i;

if (NULL == path_sep) {
printf("test4 cannot be run\n");
return(false);
}

for (i=0; i< MAXPATHLEN+5; i++) {
for (i = 0; i < OPAL_PATH_MAX + 5; i++) {
a[i] = 'a';
}
a[i] = '\0';
Expand Down