Commit 544d9b02 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Update comment in write_file

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@406 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 1cd50661
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -332,7 +332,9 @@ int write_file(char *name, int tmp)
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)...")
statement below (that says:
if (realexists == -1 || tmp || (!ISSET(FOLLOW_SYMLINKS) &&
S_ISLNK(lst.st_mode))) {
to reflect whether or not to link/unlink/rename the file */
else if (ISSET(FOLLOW_SYMLINKS) || !S_ISLNK(lst.st_mode) || tmp) {
/* Use O_EXCL if tmp == 1. This is now copied from joe, because
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment