From f81c4b683036337e7063f506c96a953f0504f3d3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 7 Sep 2020 09:21:12 +0200 Subject: [PATCH] Remove incorrect umask change Not sure why this got in there, but it is incorrect as it results in creating files with too liberal permissions. (cherry picked from commit 68f5097fd531b7c3429bc41e982e939c455f0c81) --- unix/vncserver/vncsession.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/unix/vncserver/vncsession.c b/unix/vncserver/vncsession.c index 06c07d48..3e0c98f0 100644 --- a/unix/vncserver/vncsession.c +++ b/unix/vncserver/vncsession.c @@ -117,9 +117,6 @@ begin_daemon(void) if (devnull > 2) close(devnull); - /* Full control of access bits */ - umask(0); - /* A safe working directory */ if (chdir("/") < 0) { perror("chdir"); -- 2.39.5