musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/time/getdate.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年09月29日 18:14:46 -0400
committerRich Felker <dalias@aerifal.cx>2012年09月29日 18:14:46 -0400
commitd712dd396d7d69686f7001fd986bfc59217b72dd (patch)
tree97fa1f57688e106fb0fe94c27b6d7484b8720db5 /src/time/getdate.c
parent8582a6e9f25dd7b87d72961f58008052a4cac473 (diff)
downloadmusl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.gz
more close-on-exec fixes, mostly using new "e" flag to fopen
Diffstat (limited to 'src/time/getdate.c')
-rw-r--r--src/time/getdate.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/getdate.c b/src/time/getdate.c
index 8ed650a4..89f21699 100644
--- a/src/time/getdate.c
+++ b/src/time/getdate.c
@@ -22,7 +22,7 @@ struct tm *getdate(const char *s)
goto out;
}
- f = fopen(datemsk, "r");
+ f = fopen(datemsk, "rbe");
if (!f) {
if (errno == ENOMEM) getdate_err = 6;
else getdate_err = 2;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月21日 01:04:05 +0000

AltStyle によって変換されたページ (->オリジナル) /