[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #36383] Config files occasionally truncated (zero-len

From: Mateusz Poszwa
Subject: [Weechat-dev] [bug #36383] Config files occasionally truncated (zero-length) after crash.
Date: Thu, 03 May 2012 13:44:50 +0000
User-agent: Mozilla/5.0 (X11; Linux) AppleWebKit/535.4+ Midori/0.4


                 Summary: Config files occasionally truncated (zero-length)
after crash.
                 Project: WeeChat
            Submitted by: f8l
            Submitted on: Thu 03 May 2012 15:44:49 CEST
                Category: config file
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.3.7
                IRC nick: f8l



Contents of ~/.weechat/weechat.conf and other config files are sometimes
disappear after a power outage or other crash.
This was probably caused by the fact that some filesystems are unable rename a
file atomically if the rename doesn't overwrite another file.

More information about overwrite-by-rename:

I attach a simple patch that may fix the problem.


File Attachments:

Date: Thu 03 May 2012 15:44:49 CEST  Name:
0001-Make-config_file_write_internal-perform-an-overwrite.patch  Size: 856B  
By: f8l



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]