From b137191d27b13f66bcb475741f973b4dcf86a510 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 1 Apr 2024 21:21:06 +0100 Subject: [PATCH] stow_node: rename $second_source => $link_dest The use of the word "source" to describe a link's destination is confusing in the context of Stow for reasons explained in the manual. So rename the $second_source variable to avoid this. --- lib/Stow.pm.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in index d4af9d3..da84bfc 100755 --- a/lib/Stow.pm.in +++ b/lib/Stow.pm.in @@ -500,12 +500,12 @@ sub stow_node { # Don't try to stow absolute symlinks (they can't be unstowed) if (-l $source) { - my $second_source = $self->read_a_link($source); - if ($second_source =~ m{\A/}) { + my $link_dest = $self->read_a_link($source); + if ($link_dest =~ m{\A/}) { $self->conflict( 'stow', $package, - "source is an absolute symlink $source => $second_source" + "source is an absolute symlink $source => $link_dest" ); debug(3, 0, "Absolute symlinks cannot be unstowed"); return;