]> git.pld-linux.org Git - packages/amavisd-new.git/blob - amavisd-new-dirperms.patch
- updated to 20040701
[packages/amavisd-new.git] / amavisd-new-dirperms.patch
1 diff -Nur amavisd-new-20030616.orig/helper-progs/amavis-milter-based-on-1.1.2.3.2.40-v2.c amavisd-new-20030616/helper-progs/amavis-milter-based-on-1.1.2.3.2.40-v2.c
2 --- amavisd-new-20030616.orig/helper-progs/amavis-milter-based-on-1.1.2.3.2.40-v2.c     2004-04-01 02:42:23.000000000 +0200
3 +++ amavisd-new-20030616/helper-progs/amavis-milter-based-on-1.1.2.3.2.40-v2.c  2004-05-06 16:29:22.000000000 +0200
4 @@ -202,7 +202,7 @@
5      int count = 0;
6  
7      if (use_fixed_name) {
8 -       if (mkdir(s, S_IRWXU) == 0) return s;  /* succeeded */
9 +       if (mkdir(s, S_IRWXU|S_IRWXG) == 0) return s;  /* succeeded */
10         amavis_syslog(DBG_FATAL, "(amavis_mkdtemp) creating directory %s failed: %s",
11                       s, strerror(errno));
12      }
13 @@ -234,7 +234,7 @@
14         }
15  # endif
16         if (stt) {
17 -           if (!mkdir(s, S_IRWXU)) {
18 +           if (!mkdir(s, S_IRWXU|S_IRWXG)) {
19                 return s;
20             } else {
21                 continue;
22 @@ -884,7 +884,7 @@
23      srand48(time(NULL) ^ (mypid + (mypid << 15)));
24  #endif
25  
26 -    umask(0007);
27 +    umask(0077);
28  
29      /* Process command line options */
30      while ((c = getopt(argc, argv, args)) != -1) {
This page took 0.086196 seconds and 3 git commands to generate.