Skip to content

Commit

Permalink
Merge pull request tiann#1623 from 5ec1cff/5ec1cff-patch-1
Browse files Browse the repository at this point in the history
fix boot restore
  • Loading branch information
yujincheng08 authored Apr 13, 2024
2 parents 60dd52a + ee05aed commit 37df6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/ksud/src/boot_patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub fn restore(
let sha = std::fs::read(workding_dir.path().join("orig.ksu"))?;
let sha = String::from_utf8(sha)?;
let sha = sha.trim();
let backup_path = format!("{KSU_BACKUP_DIR}/{KSU_BACKUP_FILE_PREFIX}{sha}");
let backup_path = format!("{KSU_BACKUP_DIR}/{sha}");
if Path::new(&backup_path).is_file() {
new_boot = Some(PathBuf::from(backup_path));
from_backup = true;
Expand Down

0 comments on commit 37df6ff

Please sign in to comment.