X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/b93ad4221f3b60a851a9986f7d3841847075a2c8..277817a5918e35ed8dd1731d59b35ff4d986a569:/lib/fixhost.c diff --git a/lib/fixhost.c b/lib/fixhost.c index 0ad15b7b..059b4538 100644 --- a/lib/fixhost.c +++ b/lib/fixhost.c @@ -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) {