summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-21 13:26:55 -0400
committerJune McEnroe <june@causal.agency>2021-06-21 13:26:55 -0400
commit1a336de95cb424684ac4ae8b213bba8bc9342312 (patch)
tree9e1e1c757ec3a9f5b73c7c5f18e04034676a93ce
parentUse "secure" libtls ciphers (diff)
downloadcatgirl-1a336de95cb424684ac4ae8b213bba8bc9342312.tar.gz
catgirl-1a336de95cb424684ac4ae8b213bba8bc9342312.zip
Open save file with CLOEXEC
Otherwise a lingering process from /copy for example could hold the
lock.
Diffstat (limited to '')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 8f8de1e..9d67387 100644
--- a/ui.c
+++ b/ui.c
@@ -1181,7 +1181,7 @@ static ssize_t readString(FILE *file, char **buf, size_t *cap) {
 }
 
 void uiLoad(const char *name) {
-	saveFile = dataOpen(name, "a+");
+	saveFile = dataOpen(name, "a+e");
 	if (!saveFile) exit(EX_CANTCREAT);
 	rewind(saveFile);
 
26 16:22:38 -0400'>2021-08-26Support DESTDIR in install/uninstallJune McEnroe 2021-08-26Add version number generatorJune McEnroe 2021-08-22Add ISC license headerJune McEnroe 2021-08-22Update to Linux man-pages 5.12Štěpán Němec 2021-06-21Add manuals for macOS 11.3June McEnroe 2021-05-08Update to OpenBSD 6.9June McEnroe 2021-04-26Update to Linux man-pages 5.11June McEnroe 2021-04-26Update to FreeBSD 13.0June McEnroe 2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe 2020-12-14Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe