summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2007-12-16 18:37:22 +0000
committerrunge <runge>2007-12-16 18:37:22 +0000
commit649f5b2b4615ae67d97eff7f3fa246a1ac41edf9 (patch)
tree3e3d3524182cc844b76c239c9a2f3de89e0cfa38 /x11vnc/remote.c
parent899c920eb4708e525c6555e2a6f043c3f999bbcb (diff)
downloadlibtdevnc-649f5b2b4615ae67d97eff7f3fa246a1ac41edf9.tar.gz
libtdevnc-649f5b2b4615ae67d97eff7f3fa246a1ac41edf9.zip
x11vnc: setup remote-ctrl file by default on macosx. improve
tkx11vnc wrt attaching to existing server in icon/tray mode.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index e01f08c..189eed9 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -52,6 +52,7 @@ int send_remote_cmd(char *cmd, int query, int wait) {
FILE *in = NULL;
if (client_connect_file) {
+ umask(077);
in = fopen(client_connect_file, "w");
if (in == NULL) {
fprintf(stderr, "send_remote_cmd: could not open "