Group :: Terminais
RPM: ttyrec
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 50_openpty_ALT.patch
Download
Download
diff -ur ttyrec-1.0.8.old/Makefile ttyrec-1.0.8/Makefile
--- ttyrec-1.0.8.old/Makefile 2011-09-27 13:03:06.829114294 +0000
+++ ttyrec-1.0.8/Makefile 2011-09-27 13:04:51.399020932 +0000
@@ -13,7 +13,7 @@
all: $(TARGET)
ttyrec: ttyrec.o io.o
- $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
+ $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o -lutil
ttyplay: ttyplay.o io.o
$(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
diff -ur ttyrec-1.0.8.old/ttyrec.c ttyrec-1.0.8/ttyrec.c
--- ttyrec-1.0.8.old/ttyrec.c 2011-09-27 13:03:06.861113654 +0000
+++ ttyrec-1.0.8/ttyrec.c 2011-09-27 13:09:18.185680188 +0000
@@ -71,7 +71,7 @@
#define _(FOO) FOO
#ifdef HAVE_openpty
-#include <libutil.h>
+#include <pty.h>
#endif
#if defined(SVR4) && !defined(CDEL)
@@ -504,8 +504,8 @@
(void) ioctl(slave, TIOCSCTTY, 0);
#else /* !SVR4 */
#ifndef HAVE_openpty
- line[strlen("/dev/")] = 't';
- slave = open(line, O_RDWR);
+ // line[strlen("/dev/")] = 't';
+ // slave = open(line, O_RDWR);
if (slave < 0) {
perror(line);
fail();