summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-09-06 23:44:22 +0000
committerJens Arnold <amiconn@rockbox.org>2004-09-06 23:44:22 +0000
commitcd12a03cf959badbd30ec1ee4e6d65aaa3be8355 (patch)
treef7d0305dd09ef5a4aa0616a7272e7d22a8928453
parent8537e2d12ac8af7f548972cd4ad2477112dfb5ac (diff)
downloadrockbox-cd12a03cf959badbd30ec1ee4e6d65aaa3be8355.zip
rockbox-cd12a03cf959badbd30ec1ee4e6d65aaa3be8355.tar.gz
rockbox-cd12a03cf959badbd30ec1ee4e6d65aaa3be8355.tar.bz2
rockbox-cd12a03cf959badbd30ec1ee4e6d65aaa3be8355.tar.xz
Since open() does now handle O_TRUNC correctly, the previous fix is no longer needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5049 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 5263fc0..e29e2f1 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -245,14 +245,6 @@ static void new_playlist(struct playlist_info* playlist, const char *dir,
static void create_control(struct playlist_info* playlist)
{
playlist->control_fd = creat(playlist->control_filename, 0000200);
- if (playlist->control_fd >= 0)
- {
- /* have to close and re-open without O_TRUNC, otherwise it may get
- chopped on closing (the file pointer is not always at the end) */
- close(playlist->control_fd);
- playlist->control_fd = open(playlist->control_filename, O_RDWR);
- }
-
if (playlist->control_fd < 0)
{
splash(HZ*2, true, "%s (%d)", str(LANG_PLAYLIST_CONTROL_ACCESS_ERROR),