Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#7874 - shortcuts: Specify correct flags when creating a new file

Attached to Project: Rockbox
Opened by Alexander Levin (fml2) - Sunday, 30 September 2007, 21:59 GMT+2
Last edited by Peter D'Hoye (petur) - Monday, 01 October 2007, 21:41 GMT+2
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

1. Open file for writing with 'creat' (how did it work without this flag?)
2. Remove unneeded define
   shortcuts.patch (0.8 KiB)
 apps/plugins/shortcuts/shortcuts_common.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

This task depends upon

Closed by  Peter D'Hoye (petur)
Monday, 01 October 2007, 21:41 GMT+2
Reason for closing:  Invalid
Additional comments about closing:  see comment: nothing wrong with the code
Comment by Peter D'Hoye (petur) - Monday, 01 October 2007, 21:38 GMT+2
it did because this code exists in file.c:

int creat(const char *pathname)
{
return open(pathname, O_WRONLY|O_CREAT|O_TRUNC);
}

Loading...