aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-09-07 09:21:12 +0200
committerPierre Ossman <ossman@cendio.se>2020-09-07 09:22:51 +0200
commitf81c4b683036337e7063f506c96a953f0504f3d3 (patch)
tree9fc3f1756cd37bce34b09b10ed4f6d8094ee0a17
parentb986166ad93c81466f6cb343b6b44d2f5c0f575e (diff)
downloadtigervnc-f81c4b683036337e7063f506c96a953f0504f3d3.tar.gz
tigervnc-f81c4b683036337e7063f506c96a953f0504f3d3.zip
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)
-rw-r--r--unix/vncserver/vncsession.c3
1 files changed, 0 insertions, 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");