From abd0abf5c83ee3a72fda5d2fdafb450b2440b538 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 23 Nov 2021 21:09:39 +0200 Subject: [PATCH] mu-msg-file: don't insist on absolute path Since we make it absolute anyway (g_canonicalize_file); this avoid an annoying error when using mu view with a relative path. --- lib/mu-msg-file.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/mu-msg-file.cc b/lib/mu-msg-file.cc index c289a0bd..6bb80f22 100644 --- a/lib/mu-msg-file.cc +++ b/lib/mu-msg-file.cc @@ -83,11 +83,6 @@ init_file_metadata(MuMsgFile* self, const char* path, const gchar* mdir, GError* { struct stat statbuf; - if (!g_path_is_absolute(path)) { - mu_util_g_set_error(err, MU_ERROR_FILE, "path '%s' is not absolute", path); - return FALSE; - } - if (access(path, R_OK) != 0) { mu_util_g_set_error(err, MU_ERROR_FILE,