Welcome to little lamb

Code » limb » commit 222e273

shldata_read(): Open in blocking mode

author Olivier Brunel
2023-05-14 12:04:45 UTC
committer Olivier Brunel
2023-07-05 07:37:02 UTC
parent 3536698e320eb3a0e11d510e230fcc287a6361a2

shldata_read(): Open in blocking mode

src/liblimb/shldata-rw.h/shldata_read.c +1 -1

diff --git a/src/liblimb/shldata-rw.h/shldata_read.c b/src/liblimb/shldata-rw.h/shldata_read.c
index d634ec1..043d177 100644
--- a/src/liblimb/shldata-rw.h/shldata_read.c
+++ b/src/liblimb/shldata-rw.h/shldata_read.c
@@ -15,7 +15,7 @@ shldata_read(u32 *magic, u64 *ver, stralloc *sa, int bfd, const char *file,
     char buf[4096];
     buffer b = BUFFER_INIT(&buffer_read, -1, buf, sizeof(buf));
 
-    b.fd = open_readat(bfd, file);
+    b.fd = openb_readat(bfd, file);
     if (b.fd < 0) return 0;
 
     buffer_shldata_ctx bsd = BUFFER_SHLDATA_ZERO;