diff options
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | src/tftpd.rs | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -10,9 +10,9 @@ lto = true panic = 'abort' [dependencies] -nix = "0.16.1" -getopts = "0.2.21" -threadpool = "1.7.1" +nix = "0.22.0" +getopts = "0.2" +threadpool = "1.0" [[bin]] name = "rtftpd" diff --git a/src/tftpd.rs b/src/tftpd.rs index e9fc6b6..47c225f 100644 --- a/src/tftpd.rs +++ b/src/tftpd.rs @@ -253,7 +253,7 @@ impl Tftpd { self.conf.dir = PathBuf::from("/"); Ok(()) }, - Err(err) if err == nix::Error::from_errno(nix::errno::Errno::EPERM) => Ok(()), + Err(err) if err == nix::errno::Errno::EPERM => Ok(()), Err(err) if Uid::effective() == ROOT => Err(err), Err(_) => Ok(()), } |
