]> git.pld-linux.org Git - packages/fwhois.git/commitdiff
- patches from rawhide.
authorkloczek <kloczek@pld-linux.org>
Sat, 24 Nov 2001 01:53:01 +0000 (01:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fwhois-crsnic.patch -> 1.1
    fwhois-nicname.patch -> 1.1

fwhois-crsnic.patch [new file with mode: 0644]
fwhois-nicname.patch [new file with mode: 0644]

diff --git a/fwhois-crsnic.patch b/fwhois-crsnic.patch
new file mode 100644 (file)
index 0000000..b317fec
--- /dev/null
@@ -0,0 +1,23 @@
+--- fwhois-1.00/fwhois.c       Sun Jul 25 20:34:15 1993
++++ fwhois-1.00/fwhois.c       Fri Feb  4 21:42:55 2000
+@@ -67,9 +67,9 @@
+       
+       if (argc == 2) {
+               eleet = argv[1];
+-              /* If no host specified, use whois.internic.net */
++              /* If no host specified, use whois.crsnic.net */
+               if(!index(argv[1],'@')) {
+-                      stuff = strcat(eleet,"@whois.internic.net");
++                      stuff = strcat(eleet,"@whois.crsnic.net");
+                       eleet = stuff;
+                       }
+               }
+@@ -96,7 +96,7 @@
+       if (!(host = rindex(name, '@')))
+               return;
+-      *host++ = NULL;
++      *host++ = '\0';
+       if (!(hp = gethostbyname(host))) {
+               defaddr.s_addr = inet_addr(host);
+               if (defaddr.s_addr == -1) {
diff --git a/fwhois-nicname.patch b/fwhois-nicname.patch
new file mode 100644 (file)
index 0000000..92214e9
--- /dev/null
@@ -0,0 +1,15 @@
+--- fwhois-1.00/fwhois.c       Fri Feb  4 21:42:55 2000
++++ fwhois-1.00/fwhois.c       Fri Feb  4 21:48:03 2000
+@@ -113,8 +113,10 @@
+               hp = &def;
+       }
+       if (!(sp = getservbyname("whois", "tcp"))) {
+-              (void)fprintf(stderr, "fwhois: tcp/whois: unknown service\n");
+-              return;
++              if (!(sp = getservbyname("nicname", "tcp"))) {
++                      (void)fprintf(stderr, "fwhois: tcp/whois and tcp/nicname: unknown services\n");
++                      return;
++              }
+       }
+       sin.sin_family = hp->h_addrtype;
+       bcopy(hp->h_addr, (char *)&sin.sin_addr, hp->h_length);
This page took 0.06319 seconds and 4 git commands to generate.