aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index d8cf8aa7b7..3999f475c6 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1035,8 +1035,8 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
}
}
- /* strip any s-bit */
- perm = perm & 0777;
+ // Strip any sticky and executable bits.
+ perm = perm & 0666;
/* If the undo file already exists, verify that it actually is an undo
* file, and delete it. */