From ad13acc9ccdc960381ff8d619f025f048b8e27d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Wed, 27 Nov 2024 21:21:55 +0100 Subject: [PATCH] Fix initialization of CID dir chmod to the wrong path --- podman-pilot/src/defaults.rs | 1 - podman-pilot/src/podman.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/podman-pilot/src/defaults.rs b/podman-pilot/src/defaults.rs index fb150ee..a12b9fb 100644 --- a/podman-pilot/src/defaults.rs +++ b/podman-pilot/src/defaults.rs @@ -22,7 +22,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // -pub const CONTAINER_DIR: &str = "/var/lib/containers"; pub const GC_THRESHOLD: i32 = 20; pub const HOST_DEPENDENCIES: &str = "removed"; pub const PODMAN_PATH: &str = "/usr/bin/podman"; diff --git a/podman-pilot/src/podman.rs b/podman-pilot/src/podman.rs index a74420f..f5f4408 100644 --- a/podman-pilot/src/podman.rs +++ b/podman-pilot/src/podman.rs @@ -25,7 +25,7 @@ use crate::defaults; use crate::config::{RuntimeSection, config}; -use flakes::user::{User, chmod, mkdir}; +use flakes::user::{User, mkdir}; use flakes::lookup::Lookup; use flakes::io::IO; use flakes::error::FlakeError; @@ -564,7 +564,6 @@ pub fn init_cid_dir() -> Result<(), FlakeError> { Create meta data directory structure !*/ if ! Path::new(&get_podman_ids_dir()).is_dir() { - chmod(defaults::CONTAINER_DIR, "755", User::ROOT)?; mkdir(&get_podman_ids_dir(), "777", User::ROOT)?; } Ok(())