From eda2b8335549cc97878c12973552346df5f2af52 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Thu, 17 Nov 2011 20:11:32 +0000 Subject: [PATCH] Add a missing conflict if we tried to unstow a file in compat mode. --- stow.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stow.in b/stow.in index 87da6fb..df58cc8 100755 --- a/stow.in +++ b/stow.in @@ -675,6 +675,11 @@ sub unstow_node_orig { fold_tree($target, $parent); } } + elsif (-e $target) { + conflict( + qq{existing target is neither a link nor a directory: $target}, + ); + } else { debug(3, "$target did not exist to be unstowed"); }