[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-cvs] ossec-hids: validate.c (HEAD) [dcid]



Module name:	ossec-hids
Changes by:	dcid	07/08/02 19:34:43

Modified files:
	validate.c

Log message:
Description: Adding a few more things to the windows installer. Allowing agents with dots on the name too. Last commit before 1.3 (I hope)!.
Reviewed by: dcid
Bug:

Index: validate.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/addagent/validate.c,v
diff -u -r1.10 -r1.11
--- validate.c	18 Feb 2007 23:43:40 -0000	1.10
+++ validate.c	2 Aug 2007 22:34:43 -0000	1.11
@@ -171,7 +171,8 @@
     /* check if it contains any non-alphanumeric characters */
     for(i = 0; i < strlen(u_name); i++)
     {
-      if(!isalnum((int)u_name[i]) && (u_name[i] != '-') && (u_name[i] != '_'))
+      if(!isalnum((int)u_name[i]) && (u_name[i] != '-') && 
+         (u_name[i] != '_') && (u_name[i] != '.'))
         return(0);
     }
 


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.