… | … | ||
---|---|---|---|
141 | sub find_rcfile($) { | 141 | sub find_rcfile($) { |
142 | my $path; | 142 | my $path; |
143 | 143 | ||
144 | for (@RC_PATH, "") { | 144 | for (@RC_PATH, "") { |
145 | $path = "$RC_BASE/$_/$_[0]"; | 145 | $path = "$RC_BASE/$_/$_[0]"; |
146 | return $path if -r $path; | 146 | return $path if -e $path; |
147 | } | 147 | } |
148 | 148 | ||
149 | die "FATAL: can't find required file \"$_[0]\" in \"$RC_BASE\"\n"; | 149 | die "FATAL: can't find required file \"$_[0]\" in \"$RC_BASE\"\n"; |
150 | } | 150 | } |
151 | 151 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |