From 2355126d25dbf57dd344558f5997c716b1a87c59 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 6 Jul 2023 13:24:39 +0000 Subject: Use open2() safe wrapper Signed-off-by: Laurent Bercot --- src/pub/skabus-pubd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pub/skabus-pubd.c b/src/pub/skabus-pubd.c index 7ecce5d..4fbe7f8 100644 --- a/src/pub/skabus-pubd.c +++ b/src/pub/skabus-pubd.c @@ -272,7 +272,7 @@ static int store_text (char const *s, size_t len) return -1 ; } fd_close(fd) ; - fd = open(fn, O_RDONLY) ; /* too bad you can't just lose writing rights */ + fd = open2(fn, O_RDONLY) ; /* too bad you can't just lose writing rights */ unlink_void(fn) ; /* still there as long as fd is open */ return fd ; } -- cgit v1.2.3