From d6777a60749e1b57e2901c0a4d2f6aae8b6bb2f8 Mon Sep 17 00:00:00 2001 From: Jeff Blaine Date: Mon, 23 May 2016 21:43:59 -0400 Subject: [PATCH] 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. --- unix/vncserver | 6 +++--- 1 file 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"; } -- 2.39.5