diff options
author | Jeff Blaine <jblaine@kickflop.net> | 2016-05-23 21:43:59 -0400 |
---|---|---|
committer | Jeff Blaine <jblaine@kickflop.net> | 2016-05-23 21:43:59 -0400 |
commit | d6777a60749e1b57e2901c0a4d2f6aae8b6bb2f8 (patch) | |
tree | de980ca085e162ecb813f3dbe35311f8f93bb4bf /unix | |
parent | 044e2b87da7121ef6cbd59e88b101d7d8e282896 (diff) | |
download | tigervnc-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-x | unix/vncserver | 6 |
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"; } |