]> andersk Git - moira.git/blobdiff - lib/fixhost.c
fixed include files
[moira.git] / lib / fixhost.c
index 0ad15b7bb6372467030c1a6de7e78b32c05c9cfa..a7072b02493dcdeaec23168508c0f0a86c035533 100644 (file)
@@ -4,17 +4,15 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- *     $Log$
- *     Revision 1.1  1987-09-03 03:12:45  wesommer
- *     Initial revision
- *
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  */
 
 #ifndef lint
 static char *rcsid_fixhost_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -49,6 +47,9 @@ canonicalize_hostname(host)
     char tbuf[BUFSIZ];
     register char *cp;
     
+    if (index(host, '*') || index(host, '?'))
+      return(host);
+
     hp = gethostbyname(host);
 
     if (hp) {
This page took 0.071663 seconds and 4 git commands to generate.