From c61e89c0eda126c2c1a4a3983520c35fe30db156 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 May 2010 17:35:04 +0000 Subject: Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657 --- apps/onplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/onplay.c') diff --git a/apps/onplay.c b/apps/onplay.c index e2037ad4fa..617f523879 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -666,7 +666,7 @@ static bool clipboard_pastefile(const char *src, const char *target, bool copy) src_fd = open(src, O_RDONLY); if (src_fd >= 0) { - target_fd = creat(target); + target_fd = creat(target, 0666); if (target_fd >= 0) { result = true; -- cgit v1.2.3