[Commits] [SCM] claws branch, master, updated. 4.2.0-9-gfc24da81f

paul at claws-mail.org paul at claws-mail.org
Tue Dec 19 16:17:53 UTC 2023


The branch, master has been updated
       via  fc24da81fedf0ffbe5ed486bbbe7a64eba5e176c (commit)
      from  29150a48bb93e7bffc1a39c4c62657742d0574de (commit)

Summary of changes:
 src/main.c | 7 +++++++
 1 file changed, 7 insertions(+)


- Log -----------------------------------------------------------------
commit fc24da81fedf0ffbe5ed486bbbe7a64eba5e176c
Author: Paul <paul at claws-mail.org>
Date:   Tue Dec 19 17:17:30 2023 +0100

    make a backup of menurc on startup

diff --git a/src/main.c b/src/main.c
index 911fd0dfc..bd043d252 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1236,6 +1236,13 @@ int main(int argc, char *argv[])
 	g_free(userrc);
 
 	userrc = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, MENU_RC, NULL);
+
+	if (copy_file(userrc, userrc, TRUE) < 0) {
+		g_warning("can't copy message %s to %s.bak",
+			  userrc, userrc);
+				return -1;
+	}
+
 	gtk_accel_map_load (userrc);
 	g_free(userrc);
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list