Commit 37f627f2 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Oops, we didn't want the latter check because if this is a new file there wont...

Oops, we didn't want the latter check because if this is a new file there wont be any previous inodes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@382 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 0 additions and 10 deletions
+0 -10
......@@ -358,16 +358,6 @@ int write_file(char *name, int tmp)
return -1;
}
/* Here we make sure the inode and device numbers are the
* same in the file we actually opened, compared to the file
* we performed the initial lstat() call on.
*/
if (st.st_ino != st2.st_ino || st.st_dev != st2.st_dev) {
close(fd);
return -1;
}
}
/* Don't follow symlink. Create new file. */
else {
......
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