v0.2.5-pre.009
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
// file: crates/ksp-wallet-lib/src/transfer.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Explicit OWNER-only Solana keypair import/export adapters.
|
||||
|
||||
use std::io::{Read as _, Write as _};
|
||||
use zeroize::Zeroize as _;
|
||||
use std::io::Read; // rust-rules: derive-import
|
||||
use std::io::Write; // rust-rules: derive-import
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::fs::PermissionsExt; // rust-rules: derive-import
|
||||
use zeroize::Zeroize; // rust-rules: derive-import
|
||||
|
||||
/// Explicit secret-transfer formats supported by Wallet `0.2.5`.
|
||||
#[non_exhaustive]
|
||||
@@ -317,8 +320,6 @@ fn destination_parent(destination: &std::path::Path) -> ksp_core_lib::Result<&st
|
||||
|
||||
#[cfg(unix)]
|
||||
fn set_private_permissions_best_effort(file: &std::fs::File) {
|
||||
use std::os::unix::fs::PermissionsExt as _;
|
||||
|
||||
let permissions = std::fs::Permissions::from_mode(0o600);
|
||||
if let std::result::Result::Err(error) = file.set_permissions(permissions) {
|
||||
ksp_logging_lib::warn!(
|
||||
|
||||
Reference in New Issue
Block a user