The rest of the code assumes xauth is in PATH, so let's check for
that instead.
$vncClasses = "";
-$xauth = "xauth";
-
&SanityCheck();
#
#
cmd:
- foreach $cmd ("uname") {
+ foreach $cmd ("uname","xauth") {
for (split(/:/,$ENV{PATH})) {
if (-x "$_/$cmd") {
next cmd;
}
die "$prog: couldn't find \"$cmd\" on your PATH.\n";
}
- if (-x "/usr/X11R6/bin/xauth") {
- $xauth = "/usr/X11R6/bin/xauth";
- }
- else {
- cmd1:
- foreach $cmd ("xauth") {
- for (split(/:/,$ENV{PATH})) {
- if (-x "$_/$cmd") {
- next cmd1;
- }
- }
- die "$prog: couldn't find \"$cmd\" on your PATH.\n";
- }
- }
if($exedir eq "") {
cmd2: