diff options
Diffstat (limited to 'src/bin/efreet')
-rw-r--r-- | src/bin/efreet/efreet_desktop_cache_create.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c index db14d46293..399cc81393 100644 --- a/src/bin/efreet/efreet_desktop_cache_create.c +++ b/src/bin/efreet/efreet_desktop_cache_create.c @@ -15,6 +15,10 @@ #include <Ecore.h> #include <Ecore_File.h> +#ifndef O_BINARY +# define O_BINARY 0 +#endif + #define EFREET_MODULE_LOG_DOM _efreet_desktop_cache_log_dom static int _efreet_desktop_cache_log_dom = -1; @@ -207,7 +211,7 @@ cache_lock_file(void) int lockfd; snprintf(file, sizeof(file), "%s/efreet/desktop_data.lock", efreet_cache_home_get()); - lockfd = open(file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); + lockfd = open(file, O_CREAT | O_BINARY | O_RDWR, S_IRUSR | S_IWUSR); if (lockfd < 0) return -1; efreet_fsetowner(lockfd); |