The following commit has been merged in the master branch:
commit d081bc68aa6ad3ded515ea490118b0a38a1ec204
Author: Yury V. Zaytsev <
yu...@shurup.com>
Date: Mon Sep 2 16:51:17 2024 +0200
main: remove `O_EXCL` for wd-file since creation is now managed by wrapper
Signed-off-by: Yury V. Zaytsev <
yu...@shurup.com>
diff --git a/src/main.c b/src/main.c
index 803cec1..02a49ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -509,8 +509,7 @@ main (int argc, char *argv[])
{
int last_wd_fd;
- last_wd_fd = open (mc_args__last_wd_file, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL,
- S_IRUSR | S_IWUSR);
+ last_wd_fd = open (mc_args__last_wd_file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
if (last_wd_fd != -1)
{
ssize_t ret1;
--
Midnight Commander Development