From 87453d0e47b4b9975eb178a5196123f6372ab708 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 14 Jul 2015 09:44:13 -0300 Subject: Updates rrsync from Debian Wheezy --- files/rrsync/rrsync | 47 +++++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 26 deletions(-) mode change 100755 => 100644 files/rrsync/rrsync diff --git a/files/rrsync/rrsync b/files/rrsync/rrsync old mode 100755 new mode 100644 index 7c7c659..5b2dbdf --- a/files/rrsync/rrsync +++ b/files/rrsync/rrsync @@ -16,10 +16,10 @@ use constant LOGFILE => 'rrsync.log'; my $Usage = < 0, 'delete-during' => 0, 'delete-excluded' => 0, - 'delete-missing-args' => 0, 'existing' => 0, 'fake-super' => 0, 'files-from' => 3, 'force' => 0, 'from0' => 0, 'fuzzy' => 0, - 'groupmap' => 1, 'iconv' => 1, 'ignore-errors' => 0, 'ignore-existing' => 0, - 'ignore-missing-args' => 0, 'inplace' => 0, 'link-dest' => 2, 'list-only' => 0, @@ -117,7 +114,6 @@ our %long_opt = ( 'temp-dir' => 2, 'timeout' => 1, 'use-qsort' => 0, - 'usermap' => 1, ); ### END of options data produced by the cull_options script. ### @@ -153,24 +149,24 @@ while ($command =~ /((?:[^\s\\]+|\\.[^\s\\]*)+)/g) { my($opt,$arg) = /^--([^=]+)(?:=(.*))?$/; my $disabled; if (defined $opt) { - my $ct = $long_opt{$opt}; - last unless defined $ct; - next if $ct == 0; - if ($ct > 0) { - if (!defined $arg) { - $check_type = $ct; - $last_opt = $opt; - next; - } - $arg = check_arg($opt, $arg, $ct); - $opts[-1] =~ s/=.*/=$arg/; - next; - } - $disabled = 1; - $opt = "--$opt"; + my $ct = $long_opt{$opt}; + last unless defined $ct; + next if $ct == 0; + if ($ct > 0) { + if (!defined $arg) { + $check_type = $ct; + $last_opt = $opt; + next; + } + $arg = check_arg($opt, $arg, $ct); + $opts[-1] =~ s/=.*/=$arg/; + next; + } + $disabled = 1; + $opt = "--$opt"; } elsif ($short_disabled ne '') { - $disabled = /^-$short_no_arg*([$short_disabled])/o; - $opt = "-$1"; + $disabled = /^-$short_no_arg*([$short_disabled])/o; + $opt = "-$1"; } last unless $disabled; # Generate generic failure @@ -216,4 +212,3 @@ sub check_arg } $arg; } - -- cgit v1.2.3