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

Diff of /imapfilter/file.c

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

revision 1.59 by lefcha, Sat Feb 7 23:54:16 2004 UTC revision 1.60 by lefcha, Mon Feb 9 18:23:49 2004 UTC
# Line 30  create_homedir(void) Line 30  create_homedir(void)
30                  if (mkdir(hd, S_IRUSR | S_IWUSR | S_IXUSR))                  if (mkdir(hd, S_IRUSR | S_IWUSR | S_IXUSR))
31                          error("could not create directory %s; %s\n", hd,                          error("could not create directory %s; %s\n", hd,
32                              strerror(errno));                              strerror(errno));
33            } else {
34                    check_dir_perms(hd, S_IRUSR | S_IWUSR | S_IXUSR);
35          }          }
36          return 0;          return 0;
37  }  }
# Line 129  check_file_perms(char *fname, mode_t mod Line 131  check_file_perms(char *fname, mode_t mod
131    
132  /*  /*
133   * Check the permissions of a directory.   * Check the permissions of a directory.
134   *   */
135  int  int
136  check_dir_perms(char *dname, mode_t mode)  check_dir_perms(char *dname, mode_t mode)
137  {  {
# Line 149  check_dir_perms(char *dname, mode_t mode Line 151  check_dir_perms(char *dname, mode_t mode
151          }          }
152          if ((ds.st_mode & 00777) != mode) {          if ((ds.st_mode & 00777) != mode) {
153                  error("warning: dir's %s mode should be %o not %o\n", dname,                  error("warning: dir's %s mode should be %o not %o\n", dname,
154                  mode, ds.st_mode & 00777);                      mode, ds.st_mode & 00777);
155                  return ERROR_TRIVIAL;                  return ERROR_TRIVIAL;
156          }          }
157          return 0;          return 0;
158  }*/  }

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26