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 f4d2bce7b73862f80f333a74d126eb6c7418c35b
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Mon Jun 10 17:56:36 2024 +0100

    meta - add 3rd param to open - for open with extra flags like cloexec
    
    add mode param.
---
 src/backends/default/meta.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backends/default/meta.c b/src/backends/default/meta.c
index eab9331..76233fc 100644
--- a/src/backends/default/meta.c
+++ b/src/backends/default/meta.c
@@ -430,7 +430,7 @@ meta_path_can_write(const char *path)
           if (errno == EEXIST)
             { // dir exists - test we can create a file in it
               snprintf(buf, sizeof(buf), "%s/.efm/.t", dir);
-              res = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC);
+              res = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC, S_IWUSR);
               if (res >= 0)
                 { // we can create and write to file - remove it now
                   unlink(buf);
@@ -443,4 +443,4 @@ meta_path_can_write(const char *path)
 err:
   free(dir);
   return ret;
-}
\ No newline at end of file
+}

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

Reply via email to