CTRACE(tfp,"Could not get ttyname or open UTMP file %s\n", UTMP_FILE);
CTRACE((tfp, "Could not get ttyname or open UTMP file %s\n", UTMP_FILE));
PUBLIC BOOLEAN inlocaldomain NOARGS{#if ! HAVE_UTMP    return(TRUE);#else    int n;    FILE *fp;    struct utmp me;    char *cp, *mytty = NULL;    if ((cp=ttyname(0)))	mytty = strrchr(cp, '/');    if (mytty && (fp=fopen(UTMP_FILE, "r")) != NULL) {	    mytty++;	    do {		n = fread((char *) &me, sizeof(struct utmp), 1, fp);	    } while (n>0 && !STREQ(me.ut_line,mytty));	    (void) fclose(fp);	    if (n > 0 &&		strlen(me.ut_host) > strlen(LYLocalDomain) &&		STREQ(LYLocalDomain,		  me.ut_host+strlen(me.ut_host)-strlen(LYLocalDomain)) )		return(TRUE);#ifdef LINUX/* Linux fix to check for local user. J.Cullen 11Jul94		*/	    if ((n > 0) && (strlen(me.ut_host) == 0))		return(TRUE);#endif /* LINUX */    } else {	CTRACE(tfp,"Could not get ttyname or open UTMP file %s\n", UTMP_FILE);    }    return(FALSE);#endif /* !HAVE_UTMP */}