commit b5bb24c949ef861f033709f2dc5b61cacff413de
parent 71e464034d7109cf5d48be256f8d15b4cac1df46
Author: Chris Allegretta <chrisa@asty.org>
Date: Wed, 6 Dec 2000 00:57:54 +0000
Commented the code that got us into this mess in the first place 9 releases ago
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@388 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/files.c b/files.c
@@ -332,6 +332,9 @@ int write_file(char *name, int tmp)
/* New case: if the file exists, just give up */
if (tmp && anyexists != -1)
return -1;
+ /* NOTE: If you change this statement, you MUST CHANGE the if
+ statement below (that starts "if ((!ISSET(FOLLOW_SYMLINKS)...")
+ to reflect whether or not to link/unlink/rename the file */
else if (ISSET(FOLLOW_SYMLINKS) || !S_ISLNK(st.st_mode)) {
/* Use O_EXCL if tmp == 1, I suppose */