]> git.wh0rd.org Git - nano.git/commit
in safe_tempfile(), open a newly created temporary file in "r+b" mode
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 5 Jun 2005 19:18:11 +0000 (19:18 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 5 Jun 2005 19:18:11 +0000 (19:18 +0000)
commit3db02389f4bf45863b9c096a9efc477680f94a48
treefe73880beb17ce57870dbaa635da31223d363b51
parentcc81436f8193c57fafd5e79896b11964886a563f
in safe_tempfile(), open a newly created temporary file in "r+b" mode
instead of "w+b" mode, since the latter truncates the file if it already
exists, and we don't need to do that since it's an error if the file
already exists

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2593 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
src/files.c