| Summary: | Portability issue with get_current_dir_name() | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Nicolas Joly <njoly> |
| Component: | Other | Assignee: | David Bigagli <david> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | 6 - No support contract | ||
| Priority: | --- | CC: | brian, da |
| Version: | 14.11.x | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Site: | -Other- | Alineos Sites: | --- |
| Atos/Eviden Sites: | --- | Confidential Site: | --- |
| Coreweave sites: | --- | Cray Sites: | --- |
| DS9 clusters: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Linux Distro: | --- |
| Machine Name: | CLE Version: | ||
| Version Fixed: | 14.11.0pre6 | Target Release: | --- |
| DevPrio: | --- | Emory-Cloud Sites: | --- |
| Attachments: |
get_current_dir_name() portability fix
get_current_dir_name() portability fix v2 get_current_dir_name() portability fix v2 |
||
Hi again, Forgot that getcwd(NULL, size) is not portable :( The buffer then need to be allocated first. Attached an updated patch. Created attachment 1259 [details]
get_current_dir_name() portability fix v2
Created attachment 1260 [details]
get_current_dir_name() portability fix v2
Hopefully the correct version ... Not my day :(
Commited in cff3a1d66221c83. |
Created attachment 1255 [details] get_current_dir_name() portability fix Hi, NetBSD does not have get_current_dir_name() function unlike Linux and FreeBSD. The attached patch add a configure check for this non standard function, and an fall-back mecanism to get the current directory if unsupported. Thanks. NB: I do not include auto-tools regenerated files (with autogen) due to unrelated differences.