diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-11-13 23:25:46 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-11-13 23:25:46 +0000 |
commit | 7d8bbe71b66100040c4d5453f7fc2a7a1665b599 (patch) | |
tree | 27863eea2773450ea491e5277564a5847e4e98d9 /firmware/common/file.c | |
parent | 1521a1c38a4e5bb2791a5a625f242e025225d9ea (diff) |
creat() now includes the O_TRUNC flag.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2846 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/file.c')
-rw-r--r-- | firmware/common/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 177635d0be..504273fd67 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -54,7 +54,7 @@ static int flush_cache(int fd); int creat(const char *pathname, int mode) { (void)mode; - return open(pathname, O_WRONLY|O_CREAT); + return open(pathname, O_WRONLY|O_CREAT|O_TRUNC); } int open(const char* pathname, int flags) |