~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipif: service-wrap: fix access handling if no config at all
[userv-utils]
/
ipif
/
service-wrap
diff --git
a/ipif/service-wrap
b/ipif/service-wrap
index
3a4e806
..
678a867
100755
(executable)
--- a/
ipif/service-wrap
+++ b/
ipif/service-wrap
@@
-272,12
+272,12
@@
sub readconfig ($) {
}
$cfgfh->error and die $!;
close $cfgfh;
}
$cfgfh->error and die $!;
close $cfgfh;
-
- if ($v0config && $v0config =~ m{^[^#]} && $v0config ne '/dev/null') {
- print "trying v0 config $v0config...\n" if $protocol eq 'debug';
- execreal $v0config;
- }
- die "permission denied\n";
}
readconfig $v1config;
}
readconfig $v1config;
+
+if ($v0config && $v0config =~ m{^[^#]} && $v0config ne '/dev/null') {
+ print "trying v0 config $v0config...\n" if $protocol eq 'debug';
+ execreal $v0config;
+}
+die "permission denied\n";