Skip to content

Commit

Permalink
[patch] CVE-2022-27816
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyzenith committed Mar 25, 2022
1 parent f70b99d commit 0b620a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn main() -> std::io::Result<()> {
env::set_var("RUST_LOG", "swhks=trace");
env_logger::init();

let pid_file_path = String::from("/tmp/swhks.pid");
let pid_file_path = String::from(format!("/run/user/{}/swhks.pid", unistd::Uid::current()));
let sock_file_path = String::from(format!("/run/user/{}/swhkd.sock", unistd::Uid::current()));

if Path::new(&pid_file_path).exists() {
Expand Down

0 comments on commit 0b620a0

Please # to comment.