SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Extraneous code in rsync_backup_point()
Author Message
Post Extraneous code in rsync_backup_point() 
I've noticed that rsync_backup_point() seems to extraneously
initialise $src:

#####

--- ./rsnapshot-program.pl.orig 2007-08-23 22:38:26.000000000 +1000
+++ ./rsnapshot-program.pl 2007-08-23 22:43:23.000000000 +1000
< at > < at > -3114,11 +3114,6 < at > < at >
my $result = undef;
my $using_relative = 0;

- if (defined($$bp_ref{'src'})) {
- $src = remove_trailing_slash( "$$bp_ref{'src'}" );
- $src = add_slashdot_if_root( "$src" );
- }
-
# if we're using link-dest later, that target depends on
whether we're doing a 'sync' or a regular interval
# if we're doing a "sync", then look at [lowest-interval].0
instead of [cur-interval].1
my $interval_link_dest;


#####

$src is set correctly a little later, just before rsync command
assembly, and $$bp_ref{'src'} isn't modified between the two code
segments.

Rgds,
Ben

--
Ben Low
ben < at > bdlow.net

Ice hockey combines the best features of figure skating and World War
II.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB