This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 0cdfce5175e682d601466b232c00f6c45794ff19
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Tue Feb 10 11:51:47 2026 +0000

    other file opens - ensure creates truncate too if existing
---
 src/backends/default/meta.c   | 2 +-
 src/backends/default/status.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backends/default/meta.c b/src/backends/default/meta.c
index 37138f1..cf148e3 100644
--- a/src/backends/default/meta.c
+++ b/src/backends/default/meta.c
@@ -595,7 +595,7 @@ meta_path_can_write(const char *path)
             { // dir exists - test we can create a file in it
               snprintf(buf, sizeof(buf), "%s/.efm/.testfilename.extension.efm",
                        dir);
-              res = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC, S_IWUSR);
+              res = open(buf, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, S_IWUSR);
               if (res >= 0)
                 { // we can create and write to file - remove it now
                   unlink(buf);
diff --git a/src/backends/default/status.c b/src/backends/default/status.c
index 8f47633..f607c0d 100644
--- a/src/backends/default/status.c
+++ b/src/backends/default/status.c
@@ -221,7 +221,7 @@ status_begin(void)
   eina_vpath_resolve_snprintf(buf, sizeof(buf), "(:usr.run:)/efm/ops/%i.status",
                               (int)getpid());
   status_file = strdup(buf);
-  status_fd   = open(status_file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
+  status_fd   = open(status_file, O_CREAT | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
   status_thq  = eina_thread_queue_new();
   ok          = eina_thread_create(&status_thread, EINA_THREAD_BACKGROUND, -1,
                                    _cb_status_thread, NULL);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to