Skip to content

Commit b255d34

Browse files
authored
Merge pull request #7 from creslinux/fix-hardcoded-nix-store-path
Fix hardcoded Nix store path in tests and bump version to 0.1.14
2 parents 9ea0852 + 4054444 commit b255d34

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rstrict"
3-
version = "0.1.13"
3+
version = "0.1.14"
44
edition = "2021"
55
description = "A lightweight CLI to securely exec Linux processes inside the Kernels Landlock LSM sandbox for filesystem and network access control"
66
license = "MIT"

src/ldd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ mod tests {
173173

174174
#[test]
175175
fn test_parse_interp_very_long_path() {
176-
let input = "libpcre2-8.so.0 => /nix/store/nalqwq0dpzqnp4nfv25370cb17q3wx4j-pcre2-10.44/lib/libpcre2-8.so.0 (0x00007fdf49524000)";
176+
let input = "libpcre2-8.so.0 => /dummy/path/to/some/very/long/store/path/example-1.2.3/lib/libpcre2-8.so.0 (0x00007fdf49524000)";
177177
assert_eq!(
178178
parse_interp(input),
179179
vec![PathBuf::from(
180-
"/nix/store/nalqwq0dpzqnp4nfv25370cb17q3wx4j-pcre2-10.44/lib/libpcre2-8.so.0"
180+
"/dummy/path/to/some/very/long/store/path/example-1.2.3/lib/libpcre2-8.so.0"
181181
)]
182182
);
183183
}

0 commit comments

Comments
 (0)