Skip to content

Commit c64423b

Browse files
committed
don't change dg-cli config permissions - this is handled already
1 parent ab96161 commit c64423b

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • src-tauri/cli/src/bin

src-tauri/cli/src/bin/dg.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use std::os::unix::fs::PermissionsExt;
33
use std::{
44
fmt,
5-
fs::{create_dir, set_permissions, OpenOptions, Permissions},
5+
fs::{create_dir, OpenOptions},
66
net::IpAddr,
77
path::{Path, PathBuf},
88
str::FromStr,
@@ -619,14 +619,6 @@ async fn main() {
619619
};
620620
debug!("The following configuration will be used: {config_path:?}");
621621

622-
// Ensure data directory has appropriate permissions (dg25-28)
623-
if let Err(err) = set_permissions(&config_path, Permissions::from_mode(0o700)) {
624-
warn!(
625-
"Failed to set permissions on data directory {}: {err}",
626-
config_path.display()
627-
);
628-
}
629-
630622
if let Some(("enroll", submatches)) = matches.subcommand() {
631623
debug!("Enrollment command has been selected, starting enrollment.");
632624
let token = submatches

0 commit comments

Comments
 (0)