From: Chris Allegretta Date: Wed, 6 Dec 2000 05:59:31 +0000 (+0000) Subject: Oops, misplaced comment X-Git-Tag: v0.9.23~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=da13f0b45c10791dca6eece9e255980486926a19;p=nano.git Oops, misplaced comment git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@391 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/files.c b/files.c index f42880e3..2b1c41cd 100644 --- 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"),