diff --git a/files.c b/files.c index c825844941f661893d57466bb72e1152c1367dd1..dc1220a26d861a1a5bda8fd9b498d91760507f57 100644 --- 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 */