fix: Use uzers instead of the dead package users which has several vulnerabilities (#295)

This commit is contained in:
Christian Visintin
2024-10-07 17:40:35 +02:00
committed by GitHub
parent aab266a661
commit 79c31c2d84
5 changed files with 15 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ Released on
- For more details read this issue <https://github.com/veeso/termscp/issues/285>.
- Change between auth forms with `<BACKTAB>`
- Bookmarks are automatically loaded into the last auth form.
- [Issue 289](https://github.com/veeso/termscp/issues/289): Use `uzers` instead of the dead package `users` which has several vulnerabilities
- [Issue 290](https://github.com/veeso/termscp/issues/290): Password prompt was broken
## 0.15.0

12
Cargo.lock generated
View File

@@ -3582,7 +3582,7 @@ dependencies = [
"tui-realm-stdlib",
"tuirealm",
"unicode-width 0.2.0",
"users",
"uzers",
"version-compare",
"whoami",
"wildmatch",
@@ -4062,6 +4062,16 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
[[package]]
name = "uzers"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4df81ff504e7d82ad53e95ed1ad5b72103c11253f39238bcc0235b90768a97dd"
dependencies = [
"libc",
"log",
]
[[package]]
name = "vcpkg"
version = "0.2.15"

View File

@@ -110,7 +110,7 @@ remotefs-ssh = "^0.4"
[target."cfg(target_family = \"unix\")".dependencies]
remotefs-ftp = { version = "^0.2", features = ["vendored", "native-tls"] }
remotefs-ssh = { version = "^0.4", features = ["ssh2-vendored"] }
users = "0.11.0"
uzers = "0.12"
[profile.dev]
incremental = true

View File

@@ -12,7 +12,7 @@ use lazy_regex::{Lazy, Regex};
use remotefs::File;
use unicode_width::UnicodeWidthStr;
#[cfg(unix)]
use users::{get_group_by_gid, get_user_by_uid};
use uzers::{get_group_by_gid, get_user_by_uid};
use crate::utils::fmt::{fmt_path_elide, fmt_pex, fmt_time};
use crate::utils::path::diff_paths;

View File

@@ -17,7 +17,7 @@ use tuirealm::props::{
};
use tuirealm::{Component, Event, MockComponent, NoUserEvent, State, StateValue};
#[cfg(unix)]
use users::{get_group_by_gid, get_user_by_uid};
use uzers::{get_group_by_gid, get_user_by_uid};
pub use self::chmod::ChmodPopup;
pub use self::goto::{GotoPopup, ATTR_FILES};