mirror of
https://github.com/troglobit/libite.git
synced 2026-10-14 10:19:31 +00:00
Fix non-writable tempfile(), "rw" --> "w+", found by Westermo
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6ec2a31042
commit
fe82ab953c
1 file changed
+1
-1
+1
-1
@@ -45,7 +45,7 @@ FILE *tempfile(void)
|
||||
if (-1 == fd)
|
||||
return NULL;
|
||||
|
||||
return fdopen(fd, "rw");
|
||||
return fdopen(fd, "w+");
|
||||
#else
|
||||
return tmpfile(); /* Fallback on older GLIBC/Linux and actual UNIX systems */
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user