/[imapfilter]/imapfilter/memory.c
ViewVC logotype

Diff of /imapfilter/memory.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by lefcha, Fri Jul 26 14:45:28 2002 UTC revision 1.11 by lefcha, Fri Jul 26 18:18:42 2002 UTC
# Line 11  Line 11 
11  #include "imapfilter.h"  #include "imapfilter.h"
12    
13    
14    extern unsigned int options;
15  extern uid_t ruid, euid;  extern uid_t ruid, euid;
16    
17  static secmem_t *smem = NULL;   /* First node of secure memory linked list. */  static secmem_t *smem = NULL;   /* First node of secure memory linked list. */
# Line 97  void *smalloc(size_t size) Line 98  void *smalloc(size_t size)
98      if (getuid() != geteuid())      if (getuid() != geteuid())
99          fatal(ERROR_SETUID, "imapfilter: failed to drop privileges\n");          fatal(ERROR_SETUID, "imapfilter: failed to drop privileges\n");
100    
101      if (r && !w) {      if (options & OPTION_WARNING && r && !w) {
102          error("imapfilter: warning: using insecure memory\n");          error("imapfilter: warning: using insecure memory\n");
103          w = 1;          w = 1;
104      }      }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26