From 4d6c23600b2f92f2d4bb1eba8b952e511670be52 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Thu, 1 Dec 2011 16:23:04 +0000 Subject: [PATCH] Fix corner case where only -d is specified as a single directory. --- bin/stow.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/stow.in b/bin/stow.in index ab495a6..27f628b 100755 --- a/bin/stow.in +++ b/bin/stow.in @@ -529,7 +529,7 @@ sub sanitize_path_options { $options->{target} =~ s/ +\z//; } else { - $options->{target} = parent($options->{dir}); + $options->{target} = parent($options->{dir}) || '.'; } }