]> andersk Git - moira.git/commitdiff
don't change hostname if it contains wildcards
authormar <mar>
Tue, 2 Aug 1988 21:12:18 +0000 (21:12 +0000)
committermar <mar>
Tue, 2 Aug 1988 21:12:18 +0000 (21:12 +0000)
lib/fixhost.c

index 0ad15b7bb6372467030c1a6de7e78b32c05c9cfa..059b453891b09a053d09848da443909003921c5a 100644 (file)
@@ -6,9 +6,12 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.1  1987-09-03 03:12:45  wesommer
- *     Initial revision
+ *     Revision 1.2  1988-08-02 21:12:18  mar
+ *     don't change hostname if it contains wildcards
  *
+ * Revision 1.1  87/09/03  03:12:45  wesommer
+ * Initial revision
+ * 
  */
 
 #ifndef lint
@@ -49,6 +52,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.489832 seconds and 5 git commands to generate.