]> Savannah Git Hosting - gnulib.git/commit
fopen: Fix the trailing slash workaround.
authorBruno Haible <bruno@clisp.org>
Sun, 24 May 2020 11:57:59 +0000 (13:57 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 24 May 2020 11:57:59 +0000 (13:57 +0200)
commita7e878621dc2fb8430fccb461b7b669b6bf86190
tree23f0b86dfd8eaf63c99fca37f91f691d96b7f774
parentf58691b91ed22372b4a962432aa3ea860fe1cbbb
fopen: Fix the trailing slash workaround.

* lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
write access. Pass the right flags to open().
* tests/test-fopen.h (test_fopen): Add a few more tests on directories.
ChangeLog
lib/fopen.c
tests/test-fopen.h