[prev in list] [next in list] [prev in thread] [next in thread] 

List:       snort-cvs
Subject:    [snort-cvs] CVS: snort snort.c,1.59,1.60 snort.h,1.21,1.22
From:       Fyodor Yarochkin <fygrave () users ! sourceforge ! net>
Date:       2001-02-17 18:43:30
[Download RAW message or body]

Update of /cvsroot/snort/snort
In directory usw-pr-cvs1:/tmp/cvs-serv3929

Modified Files:
	snort.c snort.h 
Log Message:
Be a bit more smart about file access bits. (althrough, is it any different on
any other unice we support? if not we could just go alone with plain single define.


Index: snort.c
===================================================================
RCS file: /cvsroot/snort/snort/snort.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -r1.59 -r1.60
*** snort.c	2001/02/15 22:52:02	1.59
--- snort.c	2001/02/17 18:43:28	1.60
***************
*** 786,790 ****
  
                      val = strtol(optarg, &p, 8);
!                     if (*p != '\0' || val < 0 || (val & ~ACCESSPERMS))
                        {
                            FatalError("ERROR: bad umask %s\n", optarg);
--- 786,790 ----
  
                      val = strtol(optarg, &p, 8);
!                     if (*p != '\0' || val < 0 || (val & ~FILEACCESSBITS))
                        {
                            FatalError("ERROR: bad umask %s\n", optarg);

Index: snort.h
===================================================================
RCS file: /cvsroot/snort/snort/snort.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** snort.h	2001/02/15 04:41:13	1.21
--- snort.h	2001/02/17 18:43:28	1.22
***************
*** 126,129 ****
--- 126,140 ----
  #define ALERT_UNSOCK   0x04
  
+ 
+ #ifdef ACCESSPERMS
+     #define FILEACCESSBITS ACCESSPERMS
+ #else
+     #ifdef  S_IAMB
+         #define FILEACCESSBITS S_IAMB
+     #else
+         #define FILEACCESSBITS 0x1FF
+     #endif
+ #endif    
+ 
  /*  D A T A  S T R U C T U R E S  *********************************************/
  /* struct to contain the program variables and command line args */


_______________________________________________
Snort-cvsinfo mailing list
Snort-cvsinfo@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/snort-cvsinfo

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic