Skip to content

Commit 2a3ae84

Browse files
committed
2 parents 46e0c2a + e61fc0e commit 2a3ae84

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ install.opt: install.META.opt install.files
6868
# BB If install is not run by root but OCSIGENUSER, OCSIGENGROUP is somebody
6969
# BB different, make files universally accessible, we cannot chown.
7070
INSTALL_CAN_PUT_PERMISSIONS=yes
71-
INSTALL_USER_GROUP=-o $(OCSIGENUSER) -g $(OCSIGENGROUP)
71+
INSTALL_USER_GROUP=-o $(OCSIGENUSER) -g "$(OCSIGENGROUP)"
7272
INSTALL_MOD_660=660
7373
INSTALL_MOD_644=644
7474
INSTALL_MOD_755=755
@@ -99,7 +99,7 @@ install.files:
9999
[ -p $(TEMPROOT)$(COMMANDPIPE) ] || \
100100
{ mkfifo -m ${INSTALL_MOD_660} $(TEMPROOT)$(COMMANDPIPE); \
101101
if [ "${INSTALL_CAN_PUT_PERMISSIONS}" = yes ]; \
102-
then $(CHOWN) -R $(OCSIGENUSER):$(OCSIGENGROUP) $(TEMPROOT)$(COMMANDPIPE); \
102+
then $(CHOWN) -R $(OCSIGENUSER):"$(OCSIGENGROUP)" $(TEMPROOT)$(COMMANDPIPE); \
103103
fi; }
104104
## Configuration files
105105
$(INSTALL) -m ${INSTALL_MOD_755} -d $(TEMPROOT)$(CONFIGDIR)/conf.d
@@ -162,7 +162,7 @@ logrotate:
162162
cat src/files/logrotate.in \
163163
| sed s%LOGDIR%$(LOGDIR)%g \
164164
| sed s%USER%$(OCSIGENUSER)%g \
165-
| sed s%GROUP%$(OCSIGENGROUP)%g \
165+
| sed s%GROUP%"$(OCSIGENGROUP)"%g \
166166
| sed s%_COMMANDPIPE_%$(COMMANDPIPE)%g \
167167
> $(TEMPROOT)/etc/logrotate.d/$(PROJECTNAME)
168168

doc/manual-wiki/libraries.wiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ configuration file before {{{ Eliom }}}).
1313
There are currently two implementations of {{{ Ocsipersist }}}:
1414
{{{ ocsipersist-dbm.cma }}} (uses the DBM database);
1515
{{{ ocsipersist-sqlite.cma }}} (uses the SQLite database
16-
and depends on {{{ sqlite3.cma }}});
16+
and depends on {{{ sqlite3.cma }}} from the OPAM package sqlite3);
1717
{{{ ocsipersist-pgsql.cma }}} (uses the PostgreSQL (version >= 9.5)
18-
database and depends on {{{ pa_pgsql.cma }}});
18+
database and depends on {{{ pa_pgsql.cma }}} from the OPAM package pgocaml);
1919
>>
2020

2121
It is possible to customize the location of the database on the

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ confs: ../$(PROJECTNAME).conf.sample ../local/etc/${PROJECTNAME}.conf
5151
| sed s%_LOGDIR_%$(LOGDIR)%g \
5252
| sed s%_DATADIR_%$(DATADIR)%g \
5353
| sed s%_OCSIGENUSER_%$(OCSIGENUSER)%g \
54-
| sed s%_OCSIGENGROUP_%$(OCSIGENGROUP)%g \
54+
| sed s%_OCSIGENGROUP_%"$(OCSIGENGROUP)"%g \
5555
| sed s%_COMMANDPIPE_%$(COMMANDPIPE)%g \
5656
| sed s%_MIMEFILE_%$(CONFIGDIR)/mime.types%g \
5757
| sed s%_METADIR_%$(LIBDIR)%g \

src/baselib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ocsigen_config.ml: ocsigen_config.ml.in ../../Makefile.config ../../Makefile.opt
7373
| sed s%_STATICPAGESDIR_%$(STATICPAGESDIR)% \
7474
| sed s%_UP_%$(UPLOADDIR)%g \
7575
| sed s%_OCSIGENUSER_%$(OCSIGENUSER)%g \
76-
| sed s%_OCSIGENGROUP_%$(OCSIGENGROUP)%g \
76+
| sed s%_OCSIGENGROUP_%"$(OCSIGENGROUP)"%g \
7777
| sed s%_PROJECTNAME_%$(PROJECTNAME)%g \
7878
| sed s%_COMMANDPIPE_%$(COMMANDPIPE)%g \
7979
| sed s%_CONFIGDIR_%$(CONFIGDIR)% \

src/server/ocsigen_socket.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ let make_sockets addr port =
4242
let ipv6_socket =
4343
try [make_ipv6_socket Unix.inet6_addr_any port]
4444
with Unix.Unix_error
45-
((Unix.EAFNOSUPPORT | Unix.EPROTONOSUPPORT),
46-
_, _) -> []
45+
((Unix.EAFNOSUPPORT
46+
| Unix.EPROTONOSUPPORT
47+
| Unix.EADDRINUSE (* GH issue #104 *)
48+
), _, _) -> []
4749
in
4850
(make_ipv4_socket Unix.inet_addr_any port)::ipv6_socket
4951
| IPv4 addr ->

0 commit comments

Comments
 (0)