summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-27 19:53:35 +0000
committermidipix <writeonce@midipix.org>2024-03-27 19:53:35 +0000
commit2b3e0af3a37f49971992469deb72d97fb8982ad2 (patch)
tree29c336d4fa7a06574df3745d4c1542a4691c5756
parentd8b6b1188a53331214fa741dcf8a2a040f4e2464 (diff)
downloadslibtool-2b3e0af3a37f49971992469deb72d97fb8982ad2.tar.bz2
slibtool-2b3e0af3a37f49971992469deb72d97fb8982ad2.tar.xz
slbt_obtain_nminfo(): fdout also requires read permissions for later mapping.
-rw-r--r--src/arbits/slbt_archive_syminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arbits/slbt_archive_syminfo.c b/src/arbits/slbt_archive_syminfo.c
index ec53d14..09c90a8 100644
--- a/src/arbits/slbt_archive_syminfo.c
+++ b/src/arbits/slbt_archive_syminfo.c
@@ -114,7 +114,7 @@ static int slbt_obtain_nminfo(
strcpy(output,arname);
strcpy(&output[pos],".nm");
- if ((fdout = openat(fdcwd,output,O_CREAT|O_TRUNC|O_WRONLY,0644)) < 0)
+ if ((fdout = openat(fdcwd,output,O_CREAT|O_TRUNC|O_RDWR,0644)) < 0)
return SLBT_SYSTEM_ERROR(dctx,output);
} else {
strcpy(output,"@nminfo@");