Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build warnings. Add docker build #41

Open
wants to merge 111 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
2de1d84
branching c-icap 0.5.x release
Mar 13, 2017
31b7785
marking c-icap 0.5.0 release
Mar 13, 2017
517a523
documentation fixes
Mar 20, 2017
ef31dc4
mark c-icap-0.5.1 release
Mar 20, 2017
4788a4f
ci_headers_value? functions should remove spaces at the start of the …
Mar 27, 2017
e957344
Bug fix: c-icap crashes when converting ci_simple_file_t to a memory …
Mar 27, 2017
92b9ac5
Document forceUnload=off option for Service/Module cfg parameter
Mar 27, 2017
f1923dc
mark c-icap-0.5.2 release
Mar 27, 2017
8f6acd6
Grab wrong cafile and capath values of TlsPort from config due to typo
Jul 16, 2017
1ff5deb
Fixes to compile with OpenSSL-1.1.0
Oct 16, 2017
30add9e
Bug #96: missing call to setgroups
Oct 16, 2017
6b23419
avoid buffer overrun while printing strings using c_debug_printf
Oct 16, 2017
4fae02f
Define the ci_simple_file_to_const_string function even if
Oct 16, 2017
8ea5d36
Fix c-icap statistics web page
Oct 16, 2017
08761af
Clean up formatting
Oct 21, 2017
a3b8059
Import brotli encode/decode support from trunk
Jan 5, 2018
de58d91
add webp image type
Jan 15, 2018
868c172
Refactor autoconf/automake build system
Jan 15, 2018
0cfca04
c-icap crashes on preview with delfate encoded data.
Jan 15, 2018
cd3b7d8
mark c-icap-0.5.3 release
Jan 16, 2018
58a2644
Bug fix: IPv6 address can not be used on Port configuration parameter
Aug 20, 2018
4ee63a0
Mark as deprecated the tls-method TlsPort option
Sep 12, 2018
5e7a0ea
Bug fix: c-icap-client does not send the ";ieof" preview termination …
Sep 13, 2018
6f0124c
Fix many typos and formatting problems.
Sep 13, 2018
9ac57ce
run formatter (./run-indent.sh)
Sep 13, 2018
c2af079
fix compiler warning about 'const char *' to 'char *' conversion
Sep 13, 2018
3944940
Fix many typos and formatting problems.
Sep 13, 2018
5d3d633
mark c-icap-0.5.4 release
Sep 13, 2018
737d47f
Bug fix: c-icap-client does not send the ";ieof" preview termination …
Sep 13, 2018
658d4a4
Fix multiple brotli decoding bugs
Sep 18, 2018
c491049
c-icap may crash with a SIGBUS inside ci_simple_file_to_const_string
Sep 18, 2018
c998dce
mark c-icap-0.5.5 release
Sep 19, 2018
a5d7b92
Allow c-icap-0.5.x to be compiled against the OpenSSL library located on
Oct 2, 2018
67d0ed6
Fix Openssl options
Oct 2, 2018
3bb560e
update README file
Oct 8, 2018
a364e92
Add forgotten encode.c file
chtsanti Jan 23, 2019
d2aa030
the ci_ipv4_inaddr_hostnetmask redeclared in types_ops.c
chtsanti Sep 20, 2019
35076e9
Fix compiler warning about wrong formatting code in snprintf
chtsanti Sep 20, 2019
3bf489c
Bug fix: Using numeric as group/user id in Group/User cfg parameter
chtsanti Sep 20, 2019
b22e865
fix possible segfault whan port given with memcached server hostname
chtsanti Sep 20, 2019
c301cc7
Fix bug which does not allow to query lookup tables with named columns
chtsanti Sep 20, 2019
0afae5f
Fixes for issues marked by clang analyzer
chtsanti Sep 20, 2019
58f3e26
Harden *_inflate_step/*_uncompress_step functions
chtsanti Sep 20, 2019
9c784c6
Handle possible memory allocation problems, datatype detection api
chtsanti Sep 20, 2019
b9fe165
Fixes for possible issues reported by clang analyzer
chtsanti Sep 20, 2019
005c42b
Fix various issues detected by clang analyzer
chtsanti Sep 20, 2019
97758b0
c-icap may crash while parsing wrong formated ICAP request line
chtsanti Sep 20, 2019
60b428a
Print more informations in uwanted c-icap state
chtsanti Sep 20, 2019
a1b83ca
Fix openldap library linking
chtsanti Sep 20, 2019
885e199
Bug 115: Fix incorrect prototype for ci_client_get_server_options_non…
chtsanti Sep 20, 2019
de3379e
Bug 116: The CI_CONNECTION_CONNECTED ci_connection_t flag is not set …
chtsanti Sep 20, 2019
a32f94f
Not correctly initialised array, can cause undefined behaviour to
chtsanti Sep 24, 2019
e505649
sprintf call may exceed buffer length
chtsanti Oct 11, 2019
66c3ec2
Increase request_t::args buffer size
chtsanti Oct 11, 2019
9d13162
Fix possible buffer overflow
chtsanti Oct 11, 2019
14e2936
Use one write to server.log for each debug message
chtsanti Oct 15, 2019
089e4b2
Fix arrays sizes to avoid compiler warnings
chtsanti Nov 1, 2019
b151302
Fix a null string check
chtsanti Nov 30, 2019
604dbc6
mark c-icap-0.5.6 release
chtsanti Nov 30, 2019
71b639b
Fix brotli horrible performance
chtsanti Feb 4, 2020
5bd8a09
Fix memory leak in info module
chtsanti May 13, 2020
7fad582
Add the -bU command line parameter to c-icap-stretch utility
chtsanti May 22, 2020
765f1ff
c-icap-stretch utility: Fix HTTP response status line
chtsanti May 26, 2020
0227413
c-icap-stretch: send always an HTTP/1.1 request
chtsanti May 26, 2020
5294f10
c-icap-stretch: minor fixes
chtsanti May 26, 2020
2b59253
Fix small memory leak while c-icap server shutdowns or reconfigures
chtsanti May 30, 2020
c21d332
Remove un-needed end-of-string set after snprintf
chtsanti Jun 6, 2020
db92267
Update iaccepted flags for tls-options option of TlsPort cfg parameter
chtsanti Jul 31, 2020
66e7513
OpenSSL support: remove references to deprecated functions
chtsanti Sep 14, 2020
b6e5ec3
Document the c-icap-client -tls* options
chtsanti Sep 17, 2020
40f7def
Fix memory leak
chtsanti Oct 19, 2020
b2d1687
Fix valgrind warning by initializing memory properly
chtsanti Oct 19, 2020
53c9714
Fix a valgrind warning when resolving hostnames (#6)
mkauf Sep 20, 2020
c7ae84f
client: support SSL connections to hostnames that contain IP addresse…
chtsanti Oct 19, 2020
ae34821
Fix compile when the pthread_rwlocks interface is not defined
chtsanti Oct 12, 2020
0b140a1
Remove unneeded parentesis to avoid compile warning when clang is used
chtsanti Oct 12, 2020
a659ac9
Bug fix: False accepting connection errors
chtsanti Oct 12, 2020
1b1f174
mark c-icap-0.5.7 release
chtsanti Oct 25, 2020
fd16918
Fix a merge bug in commit c7ae84f706. (#13)
mkauf Nov 4, 2020
462ac10
Bug #125: ISTag is not quoted
chtsanti Dec 7, 2020
71ba4c5
Fix usage string (#15)
tomers Jan 6, 2021
80c4fd5
Check ldap_get_values_len call for NULL return value
chtsanti Jan 20, 2021
a3fb6b7
Fix multiple bugs with 206 supported requests
chtsanti Jan 30, 2021
cafe31d
Bug fix: Kids are not existing if the parent process is gone
chtsanti Feb 17, 2021
7baab3b
Bug fix: c-icap crashes on reconfigure
chtsanti Feb 17, 2021
19a3c38
ldap_module.c: fix compiler warning
chtsanti Feb 17, 2021
8fcb386
Fix "Bug in the service 'xxx'. Please report to the service author!!!!"
chtsanti Feb 27, 2021
ffe94d4
mark c-icap-0.5.8 release
chtsanti Mar 1, 2021
938e37c
Fix "an anonymous union can only have non-static data member"
chtsanti Mar 22, 2021
4896626
Fix gcc-9.x stringop-truncation and format-truncation compile warnings
chtsanti May 14, 2021
ba3d2b3
Fix memory leak in command list (#22)
Jul 23, 2021
bd9b741
Fix memory leak in config memory (#24)
Jul 23, 2021
e0cb406
Fix compile warnings after 5ffed6820
chtsanti Jul 23, 2021
90823f8
Bug fix: Fix conditional jump depends on uninitialized value (#23)
Jul 23, 2021
77c4a7b
Bug fix: Fix conditional jump depends on uninitialized value (#23)
chtsanti Jul 23, 2021
cf506fc
Implement CI_CMD_CHILD_CLEANUP type commands/handlers
chtsanti Aug 23, 2021
58044b3
NSOF-5427acl: destroy ACL upon shutdown (#25)
Aug 23, 2021
12c892a
Fix compiler warning after commit 'NSOF-5427acl: destroy ACL...'
chtsanti Sep 1, 2021
165e147
ci_simple_file_* : Print more details when opening of a file fails
chtsanti Aug 23, 2021
4635fd4
Fix the buggy ci_buffers_destroy API function
chtsanti Aug 9, 2020
7e7bb82
Cleanup memory pools on c-icap server exit
chtsanti Sep 1, 2021
0556e09
Bug fix: released memory access
chtsanti Sep 1, 2021
5db8ffe
The new CI_CMD_POST_CONFIG, CI_CMD_MONITOR_START and CI_CMD_MONITOR_O…
chtsanti Sep 2, 2021
ee8d117
Add c-icap.magic record for AV1 Image File Format
chtsanti Sep 8, 2021
4be00c3
Mark c-icap-0.5.9 release
chtsanti Sep 11, 2021
c77a702
Bug fix: Commands scheduled with ci_command_schedule[_on] API function
chtsanti Sep 14, 2021
aacd635
mark the c-icap-0.5.10 release
chtsanti Oct 20, 2021
f699d9f
Docker build system
Jun 14, 2022
1750d6b
Add color output to GCC
Jun 14, 2022
10728de
Fail on warnings
Jun 14, 2022
61557e5
Fix build warnings
Jun 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.cache
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Christos Tsantilas
Alexandros Tsantilas : has wrote some of the parsers used by c-icap
Tofig Suleymanov: Implemented the ListenAddress configuration option
Alfred Klomp, Bokxing IT: bug fixes
Trever L. Adams: Implement txtTemplates
Trever L. Adams: txtTemplates, bzip,gzip/deflate encoding routings
Jeffrey Merkey: brotli compression/decompression support
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.

1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
Expand Down
59 changes: 59 additions & 0 deletions Dockerfile.c-icap
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
ARG DEPS_IMAGE=deps_cache

################################################################################
# Dependencies Stage
################################################################################
FROM alpine:3.15 as deps_cache

ARG builddeps=" \
autoconf \
automake \
bzip2 \
g++ \
gcc \
libtool \
make \
tar \
zlib \
zlib-dev \
"

ARG deps=" \
bzip2-dev \
dumb-init \
"

RUN apk --update --no-cache add ${deps} && \
apk --update --no-cache add --virtual build-deps ${builddeps}

################################################################################
# Building Stage
################################################################################
# Build a docker image for meta's censor c-icap
FROM ${DEPS_IMAGE} AS builder

ARG TEMP=/tmp/install
ARG C_ICAP_DIR=/opt/c-icap

WORKDIR /

ADD . /build_icap

RUN mkdir -p /var/log/c-icap/ && \
mkdir -p ${TEMP} && \
cp -r /build_icap ${TEMP} && \
cd ${TEMP}/build_icap && \
echo "unversioned" > VERSION.m4 && \
autoreconf -i && \
./configure --quiet --prefix=${C_ICAP_DIR} --enable-large-files && \
make -j$(awk '/^processor/{n+=1}END{print n}' /proc/cpuinfo) && \
make install && \
make clean && \
make distclean && \
cd - && \
rm -rf ${TEMP} && \
apk del --purge build-deps && \
addgroup -S c-icap && adduser -S c-icap -G c-icap && \
chown -R c-icap:c-icap ${C_ICAP_DIR} /var/log/c-icap /var/run/c-icap

USER c-icap
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
DOCKERFILE=Dockerfile.c-icap
TAG=c-icap
CACHE=.cache
DEPS_IMAGE=$(TAG):deps_cache

.PHONY: build

all: build

clean:
@rm -f $(CACHE)

$(CACHE):
DOCKER_BUILDKIT=1 docker build -f $(DOCKERFILE) -t $(DEPS_IMAGE) --target=deps_cache .
@touch $(CACHE)

.PHONY: verify_cache_integrity
verify_cache_integrity:
@docker image inspect $(DEPS_IMAGE) > /dev/null 2>&1 || rm -f $(CACHE)

build: verify_cache_integrity $(CACHE)
@DOCKER_BUILDKIT=1 docker build -t $(TAG) -f $(DOCKERFILE) \
--build-arg DEPS_IMAGE=$(DEPS_IMAGE) \
--target=builder .
@docker tag $(TAG) $(TAG):latest

verify_clean:
@git diff-index --quiet HEAD || (echo "git repo must be clean!" && exit 1)

run:
@docker run --rm $(TAG)
41 changes: 23 additions & 18 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
srcdir = @srcdir@
top_builddir=@top_builddir@

CONFIGDIR=@sysconfdir@
PKGLIBDIR=@pkglibdir@
Expand All @@ -14,6 +16,7 @@ ACLOCAL_AMFLAGS = -I m4

SUBDIRS = . utils modules services tests docs

CFLAGS += -fdiagnostics-color=always -Werror

lib_LTLIBRARIES=libicapapi.la
bin_PROGRAMS = c-icap
Expand All @@ -29,9 +32,12 @@ UTIL_LIB_SOURCES += regex.c
endif
UTIL_SOURCES=os/unix/proc_utils.c

RPATH_FLAG=
if USE_RPATH
RPATH_FLAG+=-rpath @libdir@
endif


libicapapi_la_SOURCES= header.c body.c decode.c simple_api.c request_common.c \
libicapapi_la_SOURCES= header.c body.c decode.c encode.c simple_api.c request_common.c \
filetype.c debug.c cfg_lib.c mem.c service_lib.c \
cache.c lookup_table.c lookup_file_table.c hash.c \
txt_format.c stats.c types_ops.c acl.c txtTemplate.c \
Expand All @@ -45,23 +51,22 @@ c_icap_SOURCES = aserver.c request.c cfg_param.c \


# libicapapi ......
libicapapi_la_CFLAGS= $(INVISIBILITY_CFLAG) -Iinclude/ @ZLIB_ADD_FLAG@ @OPENSSL_ADD_FLAG@ @BZLIB_ADD_FLAG@ @PCRE_ADD_FLAG@ -DCI_BUILD_LIB
libicapapi_la_CFLAGS= $(INVISIBILITY_CFLAG) -I$(srcdir)/include/ -Iinclude/ @ZLIB_ADD_FLAG@ @OPENSSL_ADD_FLAG@ @BZLIB_ADD_FLAG@ @BROTLI_ADD_FLAG@ @PCRE_ADD_FLAG@ -DCI_BUILD_LIB

libicapapi_la_LIBADD = @ZLIB_ADD_LDADD@ @BZLIB_ADD_LDADD@ @PCRE_ADD_LDADD@ @DL_ADD_FLAG@ @THREADS_LDADD@ @OPENSSL_ADD_LDADD@
libicapapi_la_LIBADD = @ZLIB_ADD_LDADD@ @BZLIB_ADD_LDADD@ @BROTLI_ADD_LDADD@ @PCRE_ADD_LDADD@ @DL_ADD_FLAG@ @THREADS_LDADD@ @OPENSSL_ADD_LDADD@
libicapapi_la_LDFLAGS= -shared -version-info @CICAPLIB_VERSION@ @THREADS_LDFLAGS@

export EXT_PROGRAMS_MKLIB = @ZLIB_LNDIR_LDADD@ @BZLIB_LNDIR_LDADD@ @BROTLI_LNDIR_LDADD@ @PCRE_LNDIR_LDADD@ @OPENSSL_LNDIR_LDADD@

#c_icap the main server
#c_icap the main server
c_icap_DEPENDENCIES=libicapapi.la
c_icap_CFLAGS= $(INVISIBILITY_CFLAG) -Iinclude/ \
c_icap_CFLAGS= $(INVISIBILITY_CFLAG) -I$(top_srcdir)/include/ -I$(top_builddir)/include/ \
-DCONFDIR=\"$(CONFIGDIR)\" -DMODSDIR=\"$(MODULESDIR)\" \
-DSERVDIR=\"$(SERVICESDIR)\" -DLOGDIR=\"$(LOGDIR)\" \
-DDATADIR=\"$(DATADIR)\" @OPENSSL_ADD_FLAG@

c_icap_LDADD = libicapapi.la @DL_ADD_FLAG@ @THREADS_LDADD@ @OPENSSL_ADD_LDADD@
c_icap_LDFLAGS = -rdynamic -rpath @libdir@ @THREADS_LDFLAGS@

EXT_PROGRAMS_MKLIB = -licapapi
c_icap_LDADD = libicapapi.la @DL_ADD_FLAG@ @THREADS_LDADD@ $(EXT_PROGRAMS_MKLIB)
c_icap_LDFLAGS = -rdynamic $(RPATH_FLAG) @THREADS_LDFLAGS@


INCS = access.h body.h cfg_param.h c-icap-conf.h c-icap.h ci_threads.h \
Expand Down Expand Up @@ -93,30 +98,30 @@ do_subst=sed -e 's%[@]SYSCONFDIR[@]%$(CONFIGDIR)%g' \

CLEANFILES = c-icap-config c-icap-libicapapi-config

# The c-icap.conf, c-icap-config, and c-icap-libicapapi-config must rebuild
# The c-icap.conf, c-icap-config, and c-icap-libicapapi-config must rebuild
# on every new configure run. The include/c-icap-conf.h is rebuild when
# configure runs so it is a good test.
c-icap.conf: c-icap.conf.in include/c-icap-conf.h
$(do_subst) < c-icap.conf.in > $@
$(do_subst) < $(srcdir)/c-icap.conf.in > $@

c-icap-config: c-icap-config.in include/c-icap-conf.h
$(do_subst) < c-icap-config.in > $@
$(do_subst) < $(srcdir)/c-icap-config.in > $@
chmod 755 $@

c-icap-libicapapi-config: c-icap-libicapapi-config.in include/c-icap-conf.h
$(do_subst) < c-icap-libicapapi-config.in > $@
$(do_subst) < $(srcdir)/c-icap-libicapapi-config.in > $@
chmod 755 $@

doc:
$(DOXYGEN) c-icap.dox
$(DOXYGEN) $(srcdir)/c-icap.dox

install-data-local: c-icap.conf
$(mkinstalldirs) $(DESTDIR)$(CONFIGDIR);
$(INSTALL) c-icap.conf $(DESTDIR)$(CONFIGDIR)/c-icap.conf.default
$(INSTALL) c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic.default
$(INSTALL) $(srcdir)/c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic.default
if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.conf; then $(INSTALL) c-icap.conf $(DESTDIR)$(CONFIGDIR)/c-icap.conf; fi
if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.magic; then $(INSTALL) c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic; fi
$(mkinstalldirs) $(DESTDIR)$(LOGDIR);
if test ! -f $(DESTDIR)$(CONFIGDIR)/c-icap.magic; then $(INSTALL) $(srcdir)/c-icap.magic $(DESTDIR)$(CONFIGDIR)/c-icap.magic; fi
$(mkinstalldirs) $(DESTDIR)$(LOGDIR);
$(mkinstalldirs) $(DESTDIR)$(SOCKDIR);
chgrp nogroup $(DESTDIR)$(LOGDIR) || echo -e "*********\nWARNING! Can not set group for the log dir $(DESTDIR)$(LOGDIR)\n*********\n"
chmod 775 $(DESTDIR)$(LOGDIR)
Expand Down
59 changes: 19 additions & 40 deletions README
Original file line number Diff line number Diff line change
@@ -1,44 +1,23 @@
This is NOT a real release. Must considered just as a stable snapshot
from cvs repository. Read the INSTALL.txt file and web pages at
http://c-icap.sourceforge.net/ for information about how to configure.
The c-icap server http://c-icap.sourceforge.net/

COMMENTS:
*c-icap is more tested in Linux systems. However compiles and runs at least
in FreeBSD 6.x and possibly in other platforms. At regular times I am
testing it also in solaris 10. I was not able to check this release due
to a problem in my solaris machine. I will do it soon...
c-icap is an implementation of an ICAP server. It can be used with HTTP
proxies that support the ICAP protocol to implement content adaptation
and filtering services.

*ipv6 support for Linux and Solaris looks that works OK but it is not
enough tested.
Most of the commercial HTTP proxies must support the ICAP protocol. The
open source Squid proxy server supports it.

*Although I was able to compile c-icap with IPv6 support in FreeBSD 5.x-6.x
it was not possible for me to make it to work. Maybe becouse of bugs in
implementation maybe becouse of my inability to correctly setup the ipv6
in FreeBSD.
Major features:
- ICAP over TLS support
- C API for developing custom content adaptation and filtering services
- plugins interface
- LDAP integration
- simple ICAP client API

NEW FEATURES:
* ServiceAlias: They are useful in the case the icap client has hardcoded
the service name. As an example in the default config file there is the
avscan service alias which can used by samba vscan-icap module.

* You can send commands to the c-icap server from command line using the
following syndax:
echo -n command_name > /var/run/c-icap.ctl
Currently the following commands are implemented:
"stop": The c-icap will shutdown
"reconfigure": The service will reread the config file without the need
for stop and restart the c-icap server. The services will
be reinitialized
"relog": This command causes c_icap to close and reopen the log files.
This is very useful for log rotation if you have services that
take a long time to start, such as srv_classify can.
"srv_clamav:dbreload"
: It reloads the clamav virus database

Examples:
- To reconfigure c-icap:
echo -n "reconfigure" > /var/run/c-icap.ctl
- To close and reopen all log files (for log rotation, etc.)
echo -n "relog" > /var/run/c-icap.ctl
- To reload clamav virusdb without stoping the c-icap:
echo -n "srv_clamav:dbreload" > /var/run/c-icap.ctl
For support, use the following resources:
- General discussion related to c-icap server:
[email protected]
- Basic installation and configuration instructions:
https://sourceforge.net/p/c-icap/wiki/configcicap/
- c-icap service developers should start from here:
https://sourceforge.net/p/c-icap/wiki/Developers/
2 changes: 1 addition & 1 deletion RECONF
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo trunk-`svnversion | cut -d ':' -f 2` > VERSION.m4
autoreconf -f -i -v
autoreconf -f -i -v
#aclocal
#autoconf
##autoheader
Expand Down
4 changes: 2 additions & 2 deletions access.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ int access_check_request(ci_request_t * req)

res = check_request(req);

ci_debug_printf(9,"Access control: %s\n", (res==CI_ACCESS_ALLOW?
ci_debug_printf(9,"Access control: %s\n", (res == CI_ACCESS_ALLOW?
"ALLOW":
(res==CI_ACCESS_DENY?"DENY":"UNKNOWN")));
(res == CI_ACCESS_DENY?"DENY":"UNKNOWN")));
return res;
}

Loading