aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml6
-rw-r--r--src/tftpd.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c094591..f9e333c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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(()),
}