]> andersk Git - moira.git/commitdiff
fix bug introduced in previous patch: `[' is no longer a glob character,
authordanw <danw>
Tue, 24 Feb 1998 18:28:40 +0000 (18:28 +0000)
committerdanw <danw>
Tue, 24 Feb 1998 18:28:40 +0000 (18:28 +0000)
but you still need to not `canonicalize' the name "[NONE]"

lib/fixhost.c

index dc7789a956ebd9aabf01531e14928c25f9af212d..a7ec0402e8ab8f4c1bfe263d3d0a77e16b943af2 100644 (file)
@@ -54,7 +54,7 @@ char *canonicalize_hostname(char *host)
       return tbuf;
     }
 
-  if (strchr(host, '*') || strchr(host, '?'))
+  if (strchr(host, '*') || strchr(host, '?') || !strcmp(host, "[NONE]"))
     return host;
 
   hp = gethostbyname(host);
This page took 0.295975 seconds and 5 git commands to generate.