[gnome-boxes/housekeeping-autumn-2021: 2/8] shared-folders: Don't throw warning when symlink exists
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/housekeeping-autumn-2021: 2/8] shared-folders: Don't throw warning when symlink exists
- Date: Wed, 13 Oct 2021 14:00:05 +0000 (UTC)
commit c778e1381c10a74bd9d7ae38181b7a8c75cee63f
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Oct 13 10:16:05 2021 +0200
shared-folders: Don't throw warning when symlink exists
We map our shared folders with symlinks. Whenever the shared folder
data is constructured, we would warn that symlinks already exist.
This is a bit scary for regular users and only serves as debug
information.
src/shared-folders.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/shared-folders.vala b/src/shared-folders.vala
index 0c9863d3..b3c7c15c 100644
--- a/src/shared-folders.vala
+++ b/src/shared-folders.vala
@@ -79,7 +79,7 @@ public new bool add_item (SharedFolder folder) {
var link_path = GLib.Path.build_filename (shared_folder, folder.name);
if (GLib.FileUtils.symlink (folder.path, link_path) == -1) {
- warning (strerror (errno));
+ debug ("Not creating symlink for shared folder \"%s\": %s", link_path, strerror (errno));
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]