FreeBSD Bugzilla – Attachment 38062 Details for
Bug 60352
[patch] buildworld fails in sysinstall if terminfo database in /usr/share/misc/terminfo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-rtermcap.c
patch-rtermcap.c (text/plain), 587 bytes, created by
Daniel Hulme
on 2003-12-18 03:00:34 UTC
(
hide
)
Description:
patch-rtermcap.c
Filename:
MIME Type:
Creator:
Daniel Hulme
Created:
2003-12-18 03:00:34 UTC
Size:
587 bytes
patch
obsolete
>--- rtermcap_orig.c Sun May 7 15:07:53 1995 >+++ rtermcap.c Wed Dec 17 18:31:21 2003 >@@ -1,15 +1,23 @@ >-#include <stdio.h> >-#include <termcap.h> >+#include <stdlib.h> > > int > main(int argc, char **argv) > { >- char buf[4096]; >+ char * files[]={ "/etc/termcap" }; >+ char * tbuf; >+ char * buf; >+ char * c; >+ char d; > int i; >- > if (argc < 2) > return 1; >- i = tgetent(buf, argv[1]); >- printf("%s",buf); >+ i=cgetent(&tbuf, files, argv[1]); >+ for (c = tbuf; *c != 0; c++) { >+ if(*c != '\t' && (*c != 58 || d != 58)) { >+ printf("%c", *c); >+ d = *c; >+ } >+ } >+ cgetclose(); > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 60352
: 38062