From a2d75af7d7a4d84dcf980b4d5ab83bb271a57b82 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 16 Jun 2017 16:39:48 -0700 Subject: [PATCH] Correct fpath() for tcpd --- src/tcpd/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcpd/main.rs b/src/tcpd/main.rs index 8878b006f3..9ee1d240ad 100644 --- a/src/tcpd/main.rs +++ b/src/tcpd/main.rs @@ -798,7 +798,7 @@ impl SchemeMut for Tcpd { fn fpath(&mut self, file: usize, buf: &mut [u8]) -> Result { if let Handle::Tcp(ref mut handle) = *self.handles.get_mut(&file).ok_or(Error::new(EBADF))? { - let path_string = format!("udp:{}:{}/{}:{}", handle.remote.0.to_string(), handle.remote.1, handle.local.0.to_string(), handle.local.1); + let path_string = format!("tcp:{}:{}/{}:{}", handle.remote.0.to_string(), handle.remote.1, handle.local.0.to_string(), handle.local.1); let path = path_string.as_bytes(); let mut i = 0;