Skip to content

Commit

Permalink
fix: Use uzers instead of the dead package users which has severa…
Browse files Browse the repository at this point in the history
…l vulnerabilities (#295)
  • Loading branch information
veeso authored Oct 7, 2024
1 parent aab266a commit 79c31c2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/explorer/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/activities/filetransfer/components/popups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 79c31c2

Please sign in to comment.