diff options
Diffstat (limited to 'net/nsping/files')
-rw-r--r-- | net/nsping/files/patch-aa | 17 | ||||
-rw-r--r-- | net/nsping/files/patch-ab | 28 |
2 files changed, 45 insertions, 0 deletions
diff --git a/net/nsping/files/patch-aa b/net/nsping/files/patch-aa new file mode 100644 index 000000000000..6b3d4f607e20 --- /dev/null +++ b/net/nsping/files/patch-aa @@ -0,0 +1,17 @@ +--- Makefile.orig Mon Nov 24 04:56:28 1997 ++++ Makefile Fri Nov 12 15:53:26 1999 +@@ -1,4 +1,4 @@ +-CFLAGS= -g ++#CFLAGS= -g + #Solaris + #CFLAGS= -g -Dsys5 + LDFLAGS= +@@ -10,6 +10,8 @@ + OBJS= nsping.o dns-lib.o dns-rr.o + SRCS= nsping.c dns-lib.c dns-rr.c + HEADERS= nsping.h dns-lib.h dns-rr.h ++ ++all: ${TARGET} + + ${TARGET} : ${OBJS} + ${CC} ${CFLAGS} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS} diff --git a/net/nsping/files/patch-ab b/net/nsping/files/patch-ab new file mode 100644 index 000000000000..970acc7d39cc --- /dev/null +++ b/net/nsping/files/patch-ab @@ -0,0 +1,28 @@ +--- nsping.c.orig Fri Nov 12 15:30:42 1999 ++++ nsping.c Fri Nov 12 15:44:06 1999 +@@ -189,10 +189,14 @@ + + int guess_zone() { + char lhn[MAXDNAME]; ++ struct hostent *hp; + char *cp; + + if(gethostname(lhn, MAXDNAME) < 0) + return(0); ++ if((hp = gethostbyname(lhn)) == NULL) ++ return(0); ++ strlcpy(lhn, hp->h_name, sizeof(lhn)); + + cp = strchr(lhn, '.'); + if(!cp || !(*(++cp))) +@@ -679,9 +683,7 @@ + /* -------------------------------------------------------------------------- */ + + void usage() { +- fprintf(stderr, "nsping [ -z <zone> | -h <hostname> ] -p <port> -t <timeout>\n" +- "\t\t-a <local address> -P <local port>\n" +- "\t\t-T <type> <-r | -R, recurse?>\n"); ++ fprintf(stderr, "Usage: nsping [-dR] [-c count] [-z zone | -h hostname] [-t timeout] [-p dport] [-P sport] [-a saddr] [-T querytype]\n"); + return; + } + |