File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to MiniJinja are documented here.
4
4
5
+ ## 2.10.0
6
+
7
+ - Fix incorrect permissions when ` --output ` is used in the CLI. #772
8
+
5
9
## 2.9.0
6
10
7
11
- Do not panic if too large templates (too many lines or too many
Original file line number Diff line number Diff line change @@ -17,7 +17,14 @@ impl Output {
17
17
None
18
18
} else {
19
19
let filename = std:: env:: current_dir ( ) ?. join ( filename) ;
20
- let ntf = NamedTempFile :: new_in (
20
+ #[ allow( unused_mut) ]
21
+ let mut builder = tempfile:: Builder :: new ( ) ;
22
+ #[ cfg( unix) ]
23
+ {
24
+ use std:: os:: unix:: fs:: PermissionsExt ;
25
+ builder. permissions ( std:: fs:: Permissions :: from_mode ( 0o666 ) ) ;
26
+ }
27
+ let ntf = builder. tempfile_in (
21
28
filename
22
29
. parent ( )
23
30
. ok_or_else ( || anyhow ! ( "cannot write to root" ) ) ?,
You can’t perform that action at this time.
0 commit comments