Commit a8c9c56
Fix execute permissions for flatc binary extracted from PAR files (#18738)
Summary:
When binaries are extracted from PAR files via `importlib.resources.as_file()`,
execute permissions are not preserved, causing PermissionError when trying to
run them.
This change ensures the flatc binary has execute permissions after extraction.
Files fixed:
- `executorch/exir/_serialize/_flatbuffer.py`: `_run_flatc` - ensure flatc binary has execute permissions
Reviewed By: abhinaykukkadapu
Differential Revision: D997805081 parent 71db7c7 commit a8c9c56
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
255 | 268 | | |
256 | 269 | | |
257 | 270 | | |
| |||
0 commit comments