mirror of
https://github.com/troglobit/libite.git
synced 2026-11-20 19:41:39 +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)
|
if (-1 == fd)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return fdopen(fd, "rw");
|
return fdopen(fd, "w+");
|
||||||
#else
|
#else
|
||||||
return tmpfile(); /* Fallback on older GLIBC/Linux and actual UNIX systems */
|
return tmpfile(); /* Fallback on older GLIBC/Linux and actual UNIX systems */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user