Merge pull request #435 from vadorovsky/pin-fix-error-msg

maps: Fix the error message in `MapData::pin()`
pull/438/head
Michal Rostecki 2 years ago committed by GitHub
commit 3e089a61d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -591,7 +591,7 @@ impl MapData {
} }
})?; })?;
bpf_pin_object(fd, &path_string).map_err(|(_, io_error)| PinError::SyscallError { bpf_pin_object(fd, &path_string).map_err(|(_, io_error)| PinError::SyscallError {
name: "BPF_OBJ_GET".to_string(), name: "BPF_OBJ_PIN".to_string(),
io_error, io_error,
})?; })?;
self.pinned = true; self.pinned = true;

Loading…
Cancel
Save