@@ -75,11 +75,11 @@ pub fn report_permission_error() {
|
|||||||
eprintln!("HOME: {}", home);
|
eprintln!("HOME: {}", home);
|
||||||
eprintln!("Executable: {}", current_executable.display());
|
eprintln!("Executable: {}", current_executable.display());
|
||||||
if home == "/" {
|
if home == "/" {
|
||||||
eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .",
|
eprintln!("User {} must have permission to write to '{}silentdragonlite/' .",
|
||||||
user,
|
user,
|
||||||
home);
|
home);
|
||||||
} else {
|
} else {
|
||||||
eprintln!("User {} must have permission to write to '{}/.silentdragonlite/' .",
|
eprintln!("User {} must have permission to write to '{}/silentdragonlite/' .",
|
||||||
user,
|
user,
|
||||||
home);
|
home);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ impl LightClientConfig {
|
|||||||
zcash_data_location.push("silentdragonlite");
|
zcash_data_location.push("silentdragonlite");
|
||||||
} else {
|
} else {
|
||||||
zcash_data_location = dirs::home_dir().expect("Couldn't determine home directory!");
|
zcash_data_location = dirs::home_dir().expect("Couldn't determine home directory!");
|
||||||
zcash_data_location.push("/.silentdragonlite/");
|
zcash_data_location.push("silentdragonlite/");
|
||||||
};
|
};
|
||||||
|
|
||||||
match &self.chain_name[..] {
|
match &self.chain_name[..] {
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ pub fn report_permission_error() {
|
|||||||
eprintln!("HOME: {}", home);
|
eprintln!("HOME: {}", home);
|
||||||
eprintln!("Executable: {}", current_executable.display());
|
eprintln!("Executable: {}", current_executable.display());
|
||||||
if home == "/" {
|
if home == "/" {
|
||||||
eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .",
|
eprintln!("User {} must have permission to write to '{}silentdragonlite/' .",
|
||||||
user,
|
user,
|
||||||
home);
|
home);
|
||||||
} else {
|
} else {
|
||||||
eprintln!("User {} must have permission to write to '{}/.silentdragonlite/ .",
|
eprintln!("User {} must have permission to write to '{}/silentdragonlite/ .",
|
||||||
user,
|
user,
|
||||||
home);
|
home);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ pub fn report_permission_error() {
|
|||||||
eprintln!("HOME: {}", home);
|
eprintln!("HOME: {}", home);
|
||||||
eprintln!("Executable: {}", current_executable.display());
|
eprintln!("Executable: {}", current_executable.display());
|
||||||
if home == "/" {
|
if home == "/" {
|
||||||
eprintln!("User {} must have permission to write to '{}.silentdragonlite/' .",
|
eprintln!("User {} must have permission to write to '{}silentdragonlite/' .",
|
||||||
user,
|
user,
|
||||||
home);
|
home);
|
||||||
} else {
|
} else {
|
||||||
eprintln!("User {} must have permission to write to '{}/.silentdragonlite/ .",
|
eprintln!("User {} must have permission to write to '{}/silentdragonlite/ .",
|
||||||
user,
|
user,
|
||||||
home);
|
home);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user