Commit 550b39e5 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Dummy version of get_real_username when RFC_931 is undefined.

parent 5cadc606
/*
* $Id: rfc931.c,v 1.5 1992/12/19 02:04:39 ceder Exp $
* $Id: rfc931.c,v 1.6 1993/02/21 16:39:11 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -39,12 +39,11 @@
#include <errno.h>
#include "log.h"
#ifdef RFC_931
char *
get_real_username(IscSession *scb,
char *hostname)
{
#ifdef RFC_931
unsigned long inlocal;
unsigned long inremote;
unsigned short local;
......@@ -63,13 +62,15 @@ get_real_username(IscSession *scb,
else
{
time(&after);
if (difftime(after, before) > 15)
if (after-before > 15)
log ("Identd at %s said %s after %d seconds.\n",
hostname,
result == NULL ? "(error)" : result,
(int)difftime(after, before));
(int)after-before);
}
return result;
}
#else
return "unknown";
#endif
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment