Fix bind/connect's AF_UNIX socket path... again

I don't really know for sure what all these silly rules are, but I think
I got it now...
This commit is contained in:
jD91mZM2
2020-06-29 11:36:07 +02:00
parent 593925ceb4
commit 39ce623d2d
2 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ pub struct sockaddr_un {
}
impl sockaddr_un {
pub fn path_len(&self) -> usize {
pub fn path_offset(&self) -> usize {
let base = self as *const _ as usize;
let path = &self.sun_path as *const _ as usize;
trace!("base: {:#X}, path: {:#X}", base, path);