Skip to content

Commit

Permalink
Merge pull request lockc-project#195 from vadorovsky/create-path-base
Browse files Browse the repository at this point in the history
lockcd: Ensure that the base path is created
  • Loading branch information
vadorovsky authored Apr 2, 2022
2 parents 99841c4 + 65ed2ab commit 638a652
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lockc/src/bin/lockcd.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, path, thread};
use std::{env, fs, path, thread};

use anyhow::Result;
use clap::Parser;
Expand Down Expand Up @@ -58,6 +58,7 @@ async fn ebpf(
.join("fs")
.join("bpf")
.join("lockc");
fs::create_dir_all(&path_base)?;

let mut bpf = load_bpf(&path_base)?;

Expand Down

0 comments on commit 638a652

Please sign in to comment.