From 2b3e2afe2318592efd37b747dad94356f24a013d Mon Sep 17 00:00:00 2001 From: jweiss Date: Tue, 21 Sep 1999 22:59:21 +0000 Subject: [PATCH] strip @mit.edu even (especially) when the user didn't explicitly say it was a string. --- clients/blanche/blanche.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clients/blanche/blanche.c b/clients/blanche/blanche.c index 9eced03c..4ab050ab 100644 --- a/clients/blanche/blanche.c +++ b/clients/blanche/blanche.c @@ -468,7 +468,7 @@ int main(int argc, char **argv) while (sq_get_data(addlist, &memberstruct)) { /* canonicalize string if necessary */ - if (memberstruct->type == M_STRING && + if (memberstruct->type != M_KERBEROS && (p = strchr(memberstruct->name, '@'))) { char *host = canonicalize_hostname(strdup(++p)); @@ -498,8 +498,9 @@ int main(int argc, char **argv) { host = strdup(memberstruct->name); *(strchr(memberstruct->name, '@')) = 0; - memberstruct->type = M_ANY; - fprintf(stderr, "Warning: \"STRING:%s\" converted to " + if (memberstruct->type == M_STRING) + memberstruct->type = M_ANY; + fprintf(stderr, "Warning: \"%s\" converted to " "\"%s\" because it is a local name.\n", host, memberstruct->name); break; -- 2.45.1