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 2ae788ebbd..05c45cce1e 100644 --- a/apps/plugins/sort.c +++ b/apps/plugins/sort.c | |||
@@ -147,7 +147,7 @@ static int write_file(void) | |||
147 | if (bomsize) | 147 | if (bomsize) |
148 | fd = rb->open_utf8(tmpfilename, O_WRONLY|O_CREAT|O_TRUNC); | 148 | fd = rb->open_utf8(tmpfilename, O_WRONLY|O_CREAT|O_TRUNC); |
149 | else | 149 | else |
150 | fd = rb->open(tmpfilename, O_WRONLY|O_CREAT|O_TRUNC); | 150 | fd = rb->open(tmpfilename, O_WRONLY|O_CREAT|O_TRUNC, 0666); |
151 | 151 | ||
152 | if(fd < 0) | 152 | if(fd < 0) |
153 | return 10 * fd - 1; | 153 | return 10 * fd - 1; |