summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Stow.pm.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in
index 98ecf35..948c7a6 100755
--- a/lib/Stow.pm.in
+++ b/lib/Stow.pm.in
@@ -1734,8 +1734,8 @@ sub read_a_link {
}
elsif (-l $path) {
debug(4, " read_a_link($path): real link");
- return readlink $path
- or error("Could not read link: $path ($!)");
+ my $target = readlink $path or error("Could not read link: $path ($!)");
+ return $target;
}
internal_error("read_a_link() passed a non link path: $path\n");
}