Repository navigation
Commit 336166d
committed
vfs: keep default dlopen flags for real file paths
The dlopen hook installed while a VFS is mounted always forwarded its
flags parameter, so a two-argument process.dlopen() call for a real
file system path reached the original implementation with `undefined`
as the flags. That coerces to 0, which is not a valid dlopen(2) mode,
instead of applying the default flags, and loading any addon from the
real file system failed with EINVAL while a VFS was mounted.
Signed-off-by: Matteo Collina <hello@matteocollina.com>1 parent 2987a59 commit 336166d
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
971 | 975 | | |
972 | 976 | | |
973 | 977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
0 commit comments