aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/text.c b/text.c
index 5a7d907..bc599f5 100644
--- a/text.c
+++ b/text.c
@@ -937,9 +937,7 @@ static bool text_save_begin_inplace(TextSave *ctx) {
*/
size_t size = txt->block->size;
char tmpname[32] = "/tmp/vis-XXXXXX";
- mode_t mask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
newfd = mkstemp(tmpname);
- umask(mask);
if (newfd == -1)
goto err;
if (unlink(tmpname) == -1)