mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 01:56:37 -04:00
science/openmolcas: Fix build with gcc14
PR: 281246 Reported by: Lorenzo Salvadore <salvadore@freebsd.org>
This commit is contained in:
parent
d20532e920
commit
c005684472
1 changed files with 11 additions and 0 deletions
11
science/openmolcas/files/patch-src_parnell_parnell__unlink.c
Normal file
11
science/openmolcas/files/patch-src_parnell_parnell__unlink.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/parnell/parnell_unlink.c.orig 2024-09-05 20:45:46 UTC
|
||||||
|
+++ src/parnell/parnell_unlink.c
|
||||||
|
@@ -75,7 +75,7 @@ parnell_status_t parnell_unlink(char *fpath) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* try to delete file and catch errors but don't act on them */
|
||||||
|
- if (lstat(fpath, &info)) {
|
||||||
|
+ if (stat(fpath, &info)) {
|
||||||
|
/* if error other than "No such file or directory", report it */
|
||||||
|
if (errno != ENOENT) {
|
||||||
|
perror("parnell_unlink: error while calling stat on file");
|
Loading…
Add table
Reference in a new issue