FreeBSD Bugzilla – Attachment 43921 Details for
Bug 68107
[MAINTAINER] comms/bforce-kst: add to nlookup supporting option -m
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
bforce-kst.diff
bforce-kst.diff (text/plain), 1.36 KB, created by
Andrey Slusar
on 2004-06-19 11:00:44 UTC
(
hide
)
Description:
bforce-kst.diff
Filename:
MIME Type:
Creator:
Andrey Slusar
Created:
2004-06-19 11:00:44 UTC
Size:
1.36 KB
patch
obsolete
>diff -ruN /usr/ports/comms/bforce-kst/files/patch-nlookup.c ./bforce-kst/files/patch-nlookup.c >--- /usr/ports/comms/bforce-kst/files/patch-nlookup.c Thu Jan 1 03:00:00 1970 >+++ ./bforce-kst/files/patch-nlookup.c Sat Jun 19 07:07:51 2004 >@@ -0,0 +1,48 @@ >+--- bfutil/nlookup.c.orig Thu Aug 30 16:33:51 2001 >++++ bfutil/nlookup.c Sat Jun 19 07:05:34 2004 >+@@ -28,15 +28,34 @@ >+ static void usage(void) >+ { >+ printf_usage("nodelist lookup utility", >+- "usage: nlookup [-rh] <address>\n" >++ "usage: nlookup [-rmh] <address>\n" >+ "\n" >+ "options:\n" >+ " -r show nodelist string\n" >++ " -m show email address\n" >+ " -h show this help message\n" >+ "\n" >+ ); >+ } >+ >++void print_nodemail(const s_node *node) >++{ >++ char abuf[BF_MAXADDRSTR+1]; >++ >++ if( node->sysop && *node->sysop && strcmp(node->sysop, "<none>") ) >++ { >++ char username[BNI_MAXSYSOP+1]; >++ >++ strnxcpy(username, node->sysop, sizeof(node->sysop)); >++ string_replchar(username, ' ', '_'); >++ >++ printf("%s@%s.fidonet.org\n", username, >++ ftn_addrstr_inet(abuf, node->addr)); >++ } >++ >++ fflush(stdout); >++} >++ >+ void print_nodeinfo(const s_node *node) >+ { >+ char abuf[BF_MAXADDRSTR+1]; >+@@ -124,6 +143,9 @@ >+ } >+ else if( nodelist_lookup(&node, addr) == 0 ) >+ { >++ if( emailaddr ) >++ print_nodemail(&node); >++ else >+ print_nodeinfo(&node); >+ } >+
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 68107
: 43921