From: Pierre Ossman Date: Mon, 7 Sep 2020 07:21:12 +0000 (+0200) Subject: Remove incorrect umask change X-Git-Tag: v1.11.90~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68f5097fd531b7c3429bc41e982e939c455f0c81;p=tigervnc.git 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. --- 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");