diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-07-06 13:24:39 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-07-06 13:24:39 +0000 |
commit | 2355126d25dbf57dd344558f5997c716b1a87c59 (patch) | |
tree | 76c2ac8045b51967a4accc9a7b97955c1239c2c1 /src/pub | |
parent | f3024f4874b0e57df9a2066f29a128315948cd88 (diff) | |
download | skabus-2355126d25dbf57dd344558f5997c716b1a87c59.tar.xz |
Use open2() safe wrapper
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/pub')
-rw-r--r-- | src/pub/skabus-pubd.c | 2 |
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 ; } |