Commit ccc5ae8
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
Differential Revision: D997805081 parent fcccda3 commit ccc5ae8
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
255 | 263 | | |
256 | 264 | | |
257 | 265 | | |
| |||
0 commit comments