From 313149731550e47eb8003907b9ca573ad7a035e3 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 6 Aug 2021 12:07:37 +0200 Subject: Update dependencies --- Cargo.toml | 6 +++--- src/tftpd.rs | 2 +- 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(()), } -- cgit v1.2.3