Commit b09a385
committed
Duplicate file descriptor in set_key_method
Otherwise it gets closed twice, once by stratisd because it makes a File
struct from the raw pointer, and once by the zbus crate.
When it is closed twice in a release build there is generally no harm
done; but when in a debug build, there is an immediate abort.
See #3946 for further
details.
Signed-off-by: mulhern <[email protected]>1 parent ddbc17d commit b09a385
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
| |||
0 commit comments