diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2021-08-06 12:07:37 +0200 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2021-08-06 12:07:37 +0200 |
| commit | 313149731550e47eb8003907b9ca573ad7a035e3 (patch) | |
| tree | 493dbb30d7fb93c5f1ae812d6583a3d3d915b143 | |
| parent | 1fbe88da96b9080751453990c127a6172237edea (diff) | |
Update dependencies
| -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(()), } |
