static int RedirectorErrors=0;
//! The file containing the sorted entries.
static char redirector_sorted[MAXLEN]="";
+//! Length of the suffix to strip from the user name.
+static int StripSuffixLen;
+
+extern char StripUserSuffix[MAX_USER_LEN];
static void parse_log(FILE *fp_ou,char *buf,int dfrom,int duntil)
{
return;
}
+ if (StripSuffixLen>0)
+ {
+ int x=strlen(user);
+ if (x>StripSuffixLen && strcasecmp(user+(x-StripSuffixLen),StripUserSuffix)==0)
+ user[x-StripSuffixLen]='\0';
+ }
if(UserIp) {
strcpy(user,ip);
id_is_ip=true;
debuga(__FILE__,__LINE__,_("Not enough memory to read file \"%s\"\n"),wentp);
exit(EXIT_FAILURE);
}
+ StripSuffixLen=strlen(StripUserSuffix);
while ((buf=longline_read(fp_in,line)) != NULL) {
parse_log(fp_ou,buf,dfrom,duntil);