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 5331dedd54444684fe30aafb781cf37ee83d79fa
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Wed Jan 21 00:06:46 2026 +0000

    simpler rename success check
---
 src/backends/default/open.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/backends/default/open.c b/src/backends/default/open.c
index b836837..d17853c 100644
--- a/src/backends/default/open.c
+++ b/src/backends/default/open.c
@@ -1608,9 +1608,8 @@ do_handle_cmd(Cmd *c)
                       // rtename tmp file over proper
                       eina_strbuf_append(strbuf2, mondir);
                       eina_strbuf_append(strbuf2, "/.efm/.efm.order");
-                      if (rename(eina_strbuf_string_get(strbuf),
-                                 eina_strbuf_string_get(strbuf2))
-                          == 0)
+                      if (!rename(eina_strbuf_string_get(strbuf),
+                                  eina_strbuf_string_get(strbuf2)))
                         { // rename worked - tell front end to refresh
                           eina_strbuf_free(strbuf);
                           strbuf = cmd_strbuf_new("view-refresh");

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

Reply via email to