diff options
Diffstat (limited to 'src/9p_io.zig')
| -rw-r--r-- | src/9p_io.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/9p_io.zig b/src/9p_io.zig index 6e9148b8..70bd0bbf 100644 --- a/src/9p_io.zig +++ b/src/9p_io.zig @@ -1054,7 +1054,7 @@ test "the socket name is a third prefix in the shared directory" { var buf: [sun_path_len]u8 = undefined; const p = socketPath(&buf, "/run/user/1000", "t9srv").?; try testing.expectEqualStrings("/run/user/1000/pardes-9p-t9srv.sock", p); - try testing.expect(!std.mem.startsWith(u8, std.fs.path.basename(p), "pardes-detached-")); + try testing.expect(!std.mem.startsWith(u8, std.Io.Dir.path.basename(p), "pardes-detached-")); } test "a name that is not one path component is no address at all" { @@ -1760,7 +1760,7 @@ pub fn exportEnv(serial: u32, adopts: bool) void { fn exportMount(sock_path: []const u8) void { const mntgen = if (libc.getenv("NINE_MNTGEN")) |v| std.mem.eql(u8, std.mem.span(v), "1") else false; const root = if (libc.getenv("NINE_MOUNT")) |v| std.mem.span(v) else ""; - const base = std.fs.path.basename(sock_path); + const base = std.Io.Dir.path.basename(sock_path); const sock_prefix = "pardes-9p-"; const suffix = ".sock"; if (mntgen and root.len > 0 and std.mem.startsWith(u8, base, sock_prefix) and std.mem.endsWith(u8, base, suffix) and base.len > sock_prefix.len + suffix.len) { |
