summaryrefslogtreecommitdiff
path: root/mbone/sdr/patches/patch-ad
blob: 3c73abf03d84a4419f6d94d825a622bd7be3691e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ad,v 1.10 2000/12/17 09:39:53 hubertf Exp $

--- ../src/sdr.tcl.orig	Mon Sep  4 18:30:39 2000
+++ ../src/sdr.tcl
@@ -4457,7 +4457,7 @@
 
 # find where we are installed
 set app_name $argv0
-while {[file type $app_name] == "link"} {
+while {([file isfile $app_name]) && ([file type $app_name] == "link")} {
     # don't worry about recursion since we know app must exist.
     set app_name [file readlink $app_name]
 }
@@ -4470,6 +4470,7 @@
 	$app_home/sdr/plugins \
 	$app_home/plugins \
 	$app_home/../plugins \
+	/usr/pkg/etc/sdr/plugins \
 	/usr/local/etc/sdr/plugins \
 	[resource sdrHome]/plugins \
 ]
@@ -4538,7 +4539,7 @@
 
 # find where we are installed
 set app_name $argv0
-while {[file type $app_name] == "link"} {
+while {([file isfile $app_name]) && ([file type $app_name] == "link")} {
     # don't worry about recursion since we know app must exist.
     set app_name [file readlink $app_name]
 }