feat: better handling

* setui/setgid/etc errors are recoverable now
* fix small print_errno arguments bug
* send TERM env var to session (if present)
This commit is contained in:
2024-07-26 18:17:17 +02:00
parent 5861b4dc34
commit 9d81c9df8b
2 changed files with 69 additions and 36 deletions

View File

@@ -569,7 +569,7 @@ void print_errno(const char *descr) {
origin.x, theme.colors.err, errno, strerror(errno));
else {
fprintf(stderr, "\x1b[%d;%dH\x1b[%sm%s(%d): %s", origin.y - 1, origin.x,
descr, theme.colors.err, errno, strerror(errno));
theme.colors.err, descr, errno, strerror(errno));
}
}