extern FileListObject UserAgentLog;
extern bool UserAgentFromCmdLine;
extern char StripUserSuffix[MAX_USER_LEN];
+extern int StripSuffixLen;
struct param_list
{
if (getparam_list("ntlm_user_format",SET_LIST(ntml_userformat_values),buf,&NtlmUserFormat)>0) return;
- if (getparam_string("strip_user_suffix",buf,StripUserSuffix,sizeof(StripUserSuffix))>0) return;
+ if (getparam_string("strip_user_suffix",buf,StripUserSuffix,sizeof(StripUserSuffix))>0) {
+ StripSuffixLen=strlen(StripUserSuffix);
+ return;
+ }
if (getparam_string("realtime_types",buf,RealtimeTypes,sizeof(RealtimeTypes))>0) return;
numlist hours = { { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 }, 24 };
//! Domain suffix to strip from the user name.
char StripUserSuffix[MAX_USER_LEN]="";
+//! Length of the suffix to strip from the user name.
+int StripSuffixLen=0;
extern char *userfile;
extern FileListObject AccessLog;
int x;
int hmr;
int nopen;
- int StripSuffixLen;
int maxopenfiles=MAX_OPEN_USER_FILES;
unsigned long int recs1=0UL;
unsigned long int recs2=0UL;
recs1=0UL;
recs2=0UL;
- StripSuffixLen=strlen(StripUserSuffix);
// pre-read the file only if we have to show stats
if (ShowReadStatistics && ShowReadPercent && fp_in->Rewind) {
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];
+extern int StripSuffixLen;
static void parse_log(FILE *fp_ou,char *buf,int dfrom,int duntil)
{
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);