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 7ba510ec32..77342f33e9 100644 --- a/apps/plugins/sort.c +++ b/apps/plugins/sort.c | |||
@@ -140,7 +140,7 @@ static int write_file(void) | |||
140 | 140 | ||
141 | /* Create a temporary file */ | 141 | /* Create a temporary file */ |
142 | rb->snprintf(tmpfilename, MAX_PATH+1, "%s.tmp", filename); | 142 | rb->snprintf(tmpfilename, MAX_PATH+1, "%s.tmp", filename); |
143 | fd = rb->creat(tmpfilename, 0); | 143 | fd = rb->creat(tmpfilename, O_WRONLY); |
144 | if(fd < 0) | 144 | if(fd < 0) |
145 | return 10 * fd - 1; | 145 | return 10 * fd - 1; |
146 | 146 | ||