Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/japanese/canna-server/files/patch-server-comm.c
16461 views
1
--- server/comm.c.orig 2004-04-27 06:48:37.000000000 +0900
2
+++ server/comm.c 2008-11-08 17:38:21.000000000 +0900
3
@@ -555,10 +555,11 @@
4
unaddr->sun_family = AF_UNIX;
5
oldUmask = umask (0);
6
7
- if ( mkdir( IR_UNIX_DIR, 0777 ) == -1 &&
8
+ if ( mkdir( IR_UNIX_DIR, 0755 ) == -1 &&
9
errno != EEXIST ) {
10
ir_debug( Dmsg(5, "Can't open %s error No. %d\n",IR_UNIX_DIR, errno));
11
}
12
+
13
if (RkiStrlcpy(unaddr->sun_path, IR_UNIX_PATH, sockpathmax) >= sockpathmax) {
14
ir_debug( Dmsg(5, "Path to socket is too long\n"));
15
goto last;
16
17