fix pam_path variable assignment during build

This commit is contained in:
Leon Welchert 2025-01-28 17:18:15 +00:00
parent e125d8f1aa
commit 2f2a460e38
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ fn install_ly(allocator: std.mem.Allocator, install_config: bool) !void {
}
{
const pam_path = try std.fs.path.join(allocator, &[_][]const u8{ dest_directory, config_directory, "/pam.d" });
const pam_path = try std.fs.path.join(allocator, &[_][]const u8{ config_directory, "/pam.d" });
if (!std.mem.eql(u8, dest_directory, "")) {
std.fs.cwd().makePath(pam_path) catch {
std.debug.print("warn: {s} already exists as a directory.\n", .{pam_path});