a811697c0c
ok okan@
28 lines
661 B
Plaintext
28 lines
661 B
Plaintext
$OpenBSD: patch-bin_fnrancid_in,v 1.5 2012/06/08 13:59:08 pea Exp $
|
|
--- bin/fnrancid.in.orig Wed Mar 9 18:19:15 2011
|
|
+++ bin/fnrancid.in Tue May 29 13:19:25 2012
|
|
@@ -172,6 +172,7 @@ sub GetSystem {
|
|
|
|
while (<INPUT>) {
|
|
tr/\015//d;
|
|
+ s/exit//gi ;
|
|
next if /^\s*$/;
|
|
last if (/$prompt/);
|
|
|
|
@@ -215,6 +216,15 @@ sub GetConf {
|
|
next;
|
|
}
|
|
ProcessHistory("","","","$_");
|
|
+ if (length($host) == 0) {
|
|
+ if ( $file) {
|
|
+ print(STDERR "Too few arguments: file name required\n");
|
|
+ exit(1);
|
|
+ } else {
|
|
+ print(STDERR "Too few arguments: host name required\n");
|
|
+ exit(1);
|
|
+ }
|
|
+ }
|
|
}
|
|
$found_end = 1;
|
|
return(1);
|