Commit 2d902dd
committed
files-reg: warn when external file has no inherit-fd mapping on restore
In open_path(), when inherit_fd_lookup_id() returns negative for an
external file, execution silently falls through to the normal open
path causing an incorrect size mismatch error. Added a pr_warn() to
make the failure explicit.
Fixes: #2951
Signed-off-by: Cameron Badman <cbadwork@gmail.com>1 parent 33e340b commit 2d902dd
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
| 2219 | + | |
2219 | 2220 | | |
2220 | 2221 | | |
2221 | 2222 | | |
| |||
0 commit comments