Skip to content

Commit a2fa282

Browse files
bors[bot]asomers
andcommitted
Merge #1020
1020: Major cmsg cleanup r=asomers a=asomers This PR fixes multiple bugs in the cmsg code. Fixes #994 Fixes #999 Fixes #1013 Co-authored-by: Alan Somers <[email protected]>
2 parents 842f5ac + b5c4c7a commit a2fa282

File tree

4 files changed

+457
-481
lines changed

4 files changed

+457
-481
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,25 @@ This project adheres to [Semantic Versioning](http://semver.org/).
99
([#1002](https://github.com/nix-rust/nix/pull/1002))
1010
### Changed
1111
- `PollFd` event flags renamed to `PollFlags` ([#1024](https://github.com/nix-rust/nix/pull/1024/))
12+
- `recvmsg` now returns an Iterator over `ControlMessageOwned` objects rather
13+
than `ControlMessage` objects. This is sadly not backwards-compatible. Fix
14+
code like this:
15+
```rust
16+
if let ControlMessage::ScmRights(&fds) = cmsg {
17+
```
18+
19+
By replacing it with code like this:
20+
```rust
21+
if let ControlMessageOwned::ScmRights(fds) = cmsg {
22+
```
23+
([#1020](https://github.com/nix-rust/nix/pull/1020))
24+
- Replaced `CmsgSpace` with the `cmsg_space` macro.
25+
([#1020](https://github.com/nix-rust/nix/pull/1020))
26+
1227
### Fixed
28+
- Fixed multiple bugs when using `sendmsg` and `recvmsg` with ancillary control messages
29+
([#1020](https://github.com/nix-rust/nix/pull/1020))
30+
1331
### Removed
1432

1533
## [0.13.0] - 2019-01-15

0 commit comments

Comments
 (0)