feat(PAM service configuration) (#62)

* docs(typo): fix typo in Contributing.md

* add optional PAM service name

* feat(PAM service name): Add ENV variable configuration for the PAM service name

* feat(PAM service name): Implement suggested changes + update README instructions

* docs(remove segment)
This commit is contained in:
SpamixOfficial
2025-07-16 14:53:23 +02:00
committed by GitHub
parent 8fc6bff60f
commit 589f33ffec
4 changed files with 35 additions and 21 deletions

View File

@@ -66,8 +66,7 @@ int read_desktop(FILE* fd, void* ctx,
buf_start[eq_idx] = '\0'; // the equal
key = trim_str(key);
char* value = &buf_start[eq_idx + 1];
if(buf_start[read_size - 1] == '\n')
buf_start[read_size - 1] = '\0';
if (buf_start[read_size - 1] == '\n') buf_start[read_size - 1] = '\0';
value = trim_str(value);
// Callback