summaryrefslogtreecommitdiff
path: root/src/pub/skabus-pubd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-06 13:24:39 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-06 13:24:39 +0000
commit2355126d25dbf57dd344558f5997c716b1a87c59 (patch)
tree76c2ac8045b51967a4accc9a7b97955c1239c2c1 /src/pub/skabus-pubd.c
parentf3024f4874b0e57df9a2066f29a128315948cd88 (diff)
downloadskabus-2355126d25dbf57dd344558f5997c716b1a87c59.tar.xz
Use open2() safe wrapper
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/pub/skabus-pubd.c')
-rw-r--r--src/pub/skabus-pubd.c2
1 files changed, 1 insertions, 1 deletions
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 ;
}