diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-26 10:50:06 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-26 10:50:06 +0000 |
commit | 1904ce3f5aa11f190c881ccda650c1f464fe9271 (patch) | |
tree | d912404f4ab5596f21e2ab7a9aed9505b2b88f0c /omusrmsg.c | |
parent | 334a663dd1cc2ad6a4377f39ae0f03c1bee55fe6 (diff) | |
download | rsyslog-1904ce3f5aa11f190c881ccda650c1f464fe9271.tar.gz rsyslog-1904ce3f5aa11f190c881ccda650c1f464fe9271.tar.xz rsyslog-1904ce3f5aa11f190c881ccda650c1f464fe9271.zip |
- removed f_type from omshell.c, omdiscard.c, omusrmsg.c, ommysql.c
- removed f_type from syslogd.c/cflineParseFileName()
- fixed bug in omfile.c which could lead to invalid addressing if "-" was
given to not sync file
- removed f_type from omfile.c
Diffstat (limited to 'omusrmsg.c')
-rw-r--r-- | omusrmsg.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -58,6 +58,7 @@ /* internal structures */ typedef struct _instanceData { + int bIsWall; /* 1- is wall, 0 - individual users */ char uname[MAXUNAMES][UNAMESZ+1]; } instanceData; @@ -194,7 +195,7 @@ static void wallmsg(selector_t *f, instanceData *pData) continue; /* should we send the message to this user? */ - if (f->f_type == F_USERS) { + if (pData->bIsWall == 0) { for (i = 0; i < MAXUNAMES; i++) { if (!pData->uname[i][0]) { i = MAXUNAMES; @@ -262,7 +263,7 @@ CODESTARTparseSelectorAct if(*p == '*') { /* wall */ dprintf ("write-all"); - f->f_type = F_WALL; + pData->bIsWall = 1; /* write to all users */ if(*(p+1) == ';') { /* we have a template specifier! */ p += 2; /* eat "*;" */ @@ -282,7 +283,7 @@ CODESTARTparseSelectorAct * loadBuildInModules() in syslogd.c */ dprintf ("users: %s\n", p); /* ASP */ - f->f_type = F_USERS; + pData->bIsWall = 0; /* write to individual users */ for (i = 0; i < MAXUNAMES && *p && *p != ';'; i++) { for (q = p; *q && *q != ',' && *q != ';'; ) q++; |