From c69cfaa124878051204ee68a1e679eb4e640d69a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 19 Nov 2022 20:20:51 +0100 Subject: [PATCH] Fix Ardour's `rm -r` implementation, delete symlinks --- libs/pbd/file_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index 7d8da7906c..164c3fd92e 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -521,7 +521,7 @@ remove_directory_internal (const string& dir, size_t* size, vector* path for (vector::const_iterator i = tmp_paths.begin(); i != tmp_paths.end(); ++i) { - if (g_stat (i->c_str(), &statbuf)) { + if (g_stat (i->c_str(), &statbuf) && g_lstat (i->c_str(), &statbuf)) { continue; }