aboutsummaryrefslogtreecommitdiff
path: root/japanese/canna-server/files/patch-server-comm.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2008-11-08 08:49:01 +0000
committerHiroki Sato <hrs@FreeBSD.org>2008-11-08 08:49:01 +0000
commitaa83bae0069671caa690aad5f055d00e01922eb7 (patch)
tree119c7539b5db0f3440ad8a2aaea6f0b9be9cae20 /japanese/canna-server/files/patch-server-comm.c
parent634cfceb32885d36e0d19a77766921ee527c42fd (diff)
Notes
Diffstat (limited to 'japanese/canna-server/files/patch-server-comm.c')
-rw-r--r--japanese/canna-server/files/patch-server-comm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/japanese/canna-server/files/patch-server-comm.c b/japanese/canna-server/files/patch-server-comm.c
new file mode 100644
index 000000000000..587efec36700
--- /dev/null
+++ b/japanese/canna-server/files/patch-server-comm.c
@@ -0,0 +1,15 @@
+--- server/comm.c.orig 2004-04-27 06:48:37.000000000 +0900
++++ server/comm.c 2008-11-08 17:38:21.000000000 +0900
+@@ -555,10 +555,11 @@
+ 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));
+ }
++
+ if (RkiStrlcpy(unaddr->sun_path, IR_UNIX_PATH, sockpathmax) >= sockpathmax) {
+ ir_debug( Dmsg(5, "Path to socket is too long\n"));
+ goto last;