check for invalid send/receive option syntax
This commit is contained in:
parent
10b2012401
commit
5812b57349
10
syncoid
10
syncoid
|
@ -30,11 +30,21 @@ my %compressargs = %{compressargset($args{'compress'} || 'default')}; # Can't be
|
|||
my @sendoptions = ();
|
||||
if (length $args{'sendoptions'}) {
|
||||
@sendoptions = parsespecialoptions($args{'sendoptions'});
|
||||
if (! defined($sendoptions[0])) {
|
||||
warn "invalid send options!";
|
||||
pod2usage(2);
|
||||
exit 127;
|
||||
}
|
||||
}
|
||||
|
||||
my @recvoptions = ();
|
||||
if (length $args{'recvoptions'}) {
|
||||
@recvoptions = parsespecialoptions($args{'recvoptions'});
|
||||
if (! defined($recvoptions[0])) {
|
||||
warn "invalid receive options!";
|
||||
pod2usage(2);
|
||||
exit 127;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue