summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorJeff Blaine <jblaine@kickflop.net>2016-05-23 21:43:59 -0400
committerJeff Blaine <jblaine@kickflop.net>2016-05-23 21:43:59 -0400
commitd6777a60749e1b57e2901c0a4d2f6aae8b6bb2f8 (patch)
treede980ca085e162ecb813f3dbe35311f8f93bb4bf /unix
parent044e2b87da7121ef6cbd59e88b101d7d8e282896 (diff)
downloadtigervnc-d6777a60749e1b57e2901c0a4d2f6aae8b6bb2f8.tar.gz
tigervnc-d6777a60749e1b57e2901c0a4d2f6aae8b6bb2f8.zip
Properly name filehandle based on context of code
Old harmless copy/paste from code above left code confusing as it was reusing the filehandle "XSTARTUP" to write out $vncUserDir/config. This new small change uses a more topical filehandle name for the task at hand.
Diffstat (limited to 'unix')
-rwxr-xr-xunix/vncserver6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/vncserver b/unix/vncserver
index bb95506d..8f1f4b7c 100755
--- a/unix/vncserver
+++ b/unix/vncserver
@@ -362,9 +362,9 @@ if (! $skipxstartup) {
if (!(-e "$vncUserDir/config")) {
warn "Creating default config $vncUserDir/config\n";
- open(XSTARTUP, ">$vncUserDir/config");
- print XSTARTUP $defaultConfig;
- close(XSTARTUP);
+ open(VNCUSERCONFIG, ">$vncUserDir/config");
+ print VNCUSERCONFIG $defaultConfig;
+ close(VNCUSERCONFIG);
chmod 0644, "$vncUserDir/config";
}