[58005] trunk/dports/textproc/canna

takanori at macports.org takanori at macports.org
Sun Sep 20 10:20:37 PDT 2009


Revision: 58005
          http://trac.macports.org/changeset/58005
Author:   takanori at macports.org
Date:     2009-09-20 10:20:36 -0700 (Sun, 20 Sep 2009)
Log Message:
-----------
canna:
* Security enhancement: UNIX domain socket directory 'IR_UNIX_DIR' should be created as 0755, not 0777.

Modified Paths:
--------------
    trunk/dports/textproc/canna/Portfile

Added Paths:
-----------
    trunk/dports/textproc/canna/files/patch-server_comm.c.diff

Modified: trunk/dports/textproc/canna/Portfile
===================================================================
--- trunk/dports/textproc/canna/Portfile	2009-09-20 17:18:55 UTC (rev 58004)
+++ trunk/dports/textproc/canna/Portfile	2009-09-20 17:20:36 UTC (rev 58005)
@@ -5,7 +5,7 @@
 name            canna
 version         3.7p3
 set dicversion  0.95c
-revision        2
+revision        3
 categories      textproc japanese
 maintainers     takanori openmaintainer
 description     Kana-Kanji conversion system
@@ -26,6 +26,7 @@
                 patch-server_util.c.diff \
                 patch-cmd_catdic_Imakefile.diff \
                 patch-lib_RK_ncache.c.diff \
+                patch-server_comm.c.diff \
                 \
                 patch-dic_ideo_words_dics.dir.diff \
                 patch-misc_default.ca.diff

Added: trunk/dports/textproc/canna/files/patch-server_comm.c.diff
===================================================================
--- trunk/dports/textproc/canna/files/patch-server_comm.c.diff	                        (rev 0)
+++ trunk/dports/textproc/canna/files/patch-server_comm.c.diff	2009-09-20 17:20:36 UTC (rev 58005)
@@ -0,0 +1,11 @@
+--- server/comm.c.orig	2004-04-27 06:48:37.000000000 +0900
++++ server/comm.c	2009-09-21 01:43:04.000000000 +0900
+@@ -555,7 +555,7 @@
+   unaddr->sun_family = AF_UNIX;
+   oldUmask = umask (0);
+   
+-  if ( mkdir( IR_UNIX_DIR, 0777 ) == -1 &&
++  if ( mkdir( IR_UNIX_DIR, 0755 ) == -1 &&
+       errno != EEXIST ) {
+     ir_debug( Dmsg(5, "Can't open %s error No. %d\n",IR_UNIX_DIR, errno));
+   }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090920/e0f06550/attachment.html>


More information about the macports-changes mailing list