LIB: don't allow same source and dest in copyDir

This commit is contained in:
Julian Ospald 2015-12-18 17:00:44 +01:00
parent 58665d7b29
commit 9fbe43e7d5
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -116,6 +116,7 @@ copyDir cm from@(Dir fn _ _, _) to@(Dir {}, _) = do
dirSanityThrow fromp
dirSanityThrow top
throwDestinationInSource fromp top
throwSameFile fromp destdir
createDestdir destdir