Skip to content

Commit

Permalink
Update crates/libcontainer/src/tty.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Toru Komatsu <[email protected]>
  • Loading branch information
morganllewellynjones and utam0k authored Sep 28, 2024
1 parent eab9106 commit 52c0bf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/libcontainer/src/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pub fn setup_console_socket(
socket_name: &str,
) -> Result<RawFd> {
// Move into the container directory to avoid sun family conflicts with long socket path names.
// ref: https://github.com/containers/youki/issues/2910

let prev_dir = env::current_dir().unwrap();
let _ = env::set_current_dir(container_dir);
Expand Down

0 comments on commit 52c0bf6

Please sign in to comment.