]> git.wh0rd.org Git - nano.git/commitdiff
Oops, misplaced comment
authorChris Allegretta <chrisa@asty.org>
Wed, 6 Dec 2000 05:59:31 +0000 (05:59 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 6 Dec 2000 05:59:31 +0000 (05:59 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@391 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c

diff --git a/files.c b/files.c
index f42880e363aa77578de0be5e04782e3397fb07ba..2b1c41cd2ade9572d50423de5f6ff73f864f5e1d 100644 (file)
--- a/files.c
+++ b/files.c
@@ -444,10 +444,10 @@ int write_file(char *name, int tmp)
        else
            mask = 0666 & ~mask;
     } else
+       /* Use permissions from file we are overwriting. */
        mask = st.st_mode;
 
     if (!tmp && (!ISSET(FOLLOW_SYMLINKS) && S_ISLNK(lst.st_mode))) {
-       /* Use permissions from file we are overwriting. */
        if (unlink(realname) == -1) {
            if (errno != ENOENT) {
                statusbar(_("Could not open %s for writing: %s"),