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

Diff of /imapfilter/parse.c

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

revision 1.8 by lefcha, Sat Feb 7 23:54:16 2004 UTC revision 1.9 by lefcha, Mon Feb 9 17:34:56 2004 UTC
# Line 49  read_config(char *cfg) Line 49  read_config(char *cfg)
49                  cfg = c = (char *)xmalloc(PATH_MAX * sizeof(char));                  cfg = c = (char *)xmalloc(PATH_MAX * sizeof(char));
50                  snprintf(cfg, PATH_MAX, "%s/%s", home, PATHNAME_CONFIG_FILE);                  snprintf(cfg, PATH_MAX, "%s/%s", home, PATHNAME_CONFIG_FILE);
51          }          }
52  #ifdef DEBUG          debug("configuration file: '%s'\n", cfg);
         fprintf(stderr, "debug: configuration file: '%s'\n", cfg);  
 #endif  
53    
54          fd = fopen(cfg, "r");          fd = fopen(cfg, "r");
55          if (fd == NULL)          if (fd == NULL)
# Line 69  read_config(char *cfg) Line 67  read_config(char *cfg)
67    
68          check_file_perms(cfg, S_IRUSR | S_IWUSR);          check_file_perms(cfg, S_IRUSR | S_IWUSR);
69    
70  #ifdef DEBUG          debug("options: %0#10x '%s'\n", options, charset);
         fprintf(stderr, "debug: options: %0#10x '%s'\n", options, charset);  
 #endif  
71    
72          return 0;          return 0;
73  }  }
# Line 319  read_passwords(void) Line 315  read_passwords(void)
315                  *passphr = '\0';                  *passphr = '\0';
316          }          }
317          snprintf(pwfile, PATH_MAX, "%s/%s", home, PATHNAME_PASSWORD_FILE);          snprintf(pwfile, PATH_MAX, "%s/%s", home, PATHNAME_PASSWORD_FILE);
318  #ifdef DEBUG          debug("passwords file: '%s'\n", pwfile);
         fprintf(stderr, "debug: passwords file: '%s'\n", pwfile);  
 #endif  
319    
320          if (!exists_file(pwfile))          if (!exists_file(pwfile))
321                  return ERROR_FILE_OPEN;                  return ERROR_FILE_OPEN;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26