diff options
Diffstat (limited to 'apps/plugins/sort.c')
| -rw-r--r-- | apps/plugins/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/sort.c b/apps/plugins/sort.c index 77342f3..80ef22f 100644 --- a/apps/plugins/sort.c +++ b/apps/plugins/sort.c @@ -140,7 +140,7 @@ static int write_file(void) /* Create a temporary file */ rb->snprintf(tmpfilename, MAX_PATH+1, "%s.tmp", filename); - fd = rb->creat(tmpfilename, O_WRONLY); + fd = rb->creat(tmpfilename); if(fd < 0) return 10 * fd - 1; |