810dc2911d
- Fix compilation on -CURRENT by letting it use posix_openpt() to allocate PTYs. - Fix compilation when enabling WITH_GREEK. PR: ports/132928 Approved by: port maintainer
12 lines
320 B
C
12 lines
320 B
C
--- src/logging.c
|
|
+++ src/logging.c
|
|
@@ -131,6 +131,9 @@
|
|
STRNCPY(ut_id, (pty + 3), sizeof(ut_id));
|
|
else
|
|
#ifndef USE_SYSV_UTMP
|
|
+ if (!strncmp(pty, "pts/", 4))
|
|
+ STRNCPY(ut_id, (pty + 4), sizeof(ut_id));
|
|
+ else
|
|
{
|
|
print_error("can't parse tty name \"%s\"", pty);
|
|
ut_id[0] = '\0'; /* entry not made */
|