Add Dependabot, Update Dependencies and Workflows (#1440)

Build may fail because of some major dependency updates. Needs changes,
changes/fixes welcomed.

Main goal is keeping all things up-to-date.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
This commit is contained in:
Caner Karaca
2024-03-20 07:52:34 +03:00
committed by GitHub
parent 2b0d19928a
commit 8f33926aa0
22 changed files with 981 additions and 1273 deletions

View File

@@ -72,7 +72,7 @@ fn parse_kmi_from_modules() -> Result<String> {
let output = Command::new("modinfo")
.arg("/vendor/lib/modules/fips140.ko")
.output()?;
for line in output.stdout.lines().flatten() {
for line in output.stdout.lines().map_while(Result::ok) {
if line.starts_with("vermagic") {
return parse_kmi(&line);
}

View File

@@ -217,7 +217,7 @@ pub fn root_shell() -> Result<()> {
let name = &matches.free[free_idx];
uid = unsafe {
#[cfg(target_arch = "aarch64")]
let pw = libc::getpwnam(name.as_ptr() as *const u8).as_ref();
let pw = libc::getpwnam(name.as_ptr()).as_ref();
#[cfg(target_arch = "x86_64")]
let pw = libc::getpwnam(name.as_ptr() as *const i8).as_ref();