Alexander Barton [Sat, 7 Dec 2019 00:42:33 +0000 (01:42 +0100)]
contrib/nglog.sh: Use bright colors for warning & error messages
Alexander Barton [Sat, 7 Dec 2019 00:41:39 +0000 (01:41 +0100)]
contrib/ngindent.sh: Enhance and rename script
Add more GNU indent options for better results, and add the ".sh" suffix
to bring this script in line with the others in the contrib/ folder.
Windree [Sun, 1 Dec 2019 23:45:09 +0000 (02:45 +0300)]
Update install documentation: libgnutls-dev
According https://packages.debian.org/search?keywords=libgnutls28-dev
in Ubuntu and Debian libgnutls-dev package name is libgnutls28-dev
Closes #264.
Thanks Windree!
Alexander Barton [Sun, 10 Nov 2019 21:07:26 +0000 (22:07 +0100)]
Add simple log colorization script: ./contrib/nglog.sh
This script parses the log output of ngircd(8), and colorizes the
messages accoring to their log level. Example usage:
ngircd -f $PWD/doc/sample-ngircd.conf -np | ./contrib/nglog.sh
Alexander Barton [Sun, 10 Nov 2019 20:12:39 +0000 (21:12 +0100)]
Log received signals (using strsignal(3), when available)
Alexander Barton [Sun, 3 Nov 2019 14:15:59 +0000 (15:15 +0100)]
Make test suite compatible with Haiku
Alexander Barton [Sun, 3 Nov 2019 14:01:51 +0000 (15:01 +0100)]
Add VIM "swap files" (*.swp) to .gitignore file
JRMU [Wed, 4 Sep 2019 04:48:54 +0000 (06:48 +0200)]
Fix hostmask cloaking bug, don't cloak multiple times
Previously, each server would cloak every user's hostmask. The problem
is that if a network has more than one server, then a user's hostmask
would get cloaked twice. This patch ensures that a server only cloaks
the hostmask if it has not yet been cloaked (the period indicates it's
still an IP address).
Closes #228.
Alexander Barton [Sun, 21 Jul 2019 14:23:07 +0000 (16:23 +0200)]
Fix some typos (documentation files, ngircd.conf manual page, ...)
Spotted by Étienne Mollier <etienne.mollier@mailoo.org> and Christoph
Biedl <debian.axhn@manchmal.in-ulm.de>, see Debian bug #932462
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932462). Thank you!
Alexander Barton [Mon, 1 Jul 2019 19:56:36 +0000 (21:56 +0200)]
Make sure HAVE_LIBSSL is defined, even when using pkg-config
Without this, the configure script assumes and states that OpenSSL will
be used, but the code won't include support for it because there we use
the "HAVE_LIBSSL" define to test for it ("#ifdef HAVE_LIBSSL").
So define the latter when pkg-config(1) is used, too.
This fixes #257, a regression introduced by commit
ad86a41ee :-/
Alexander Barton [Sat, 29 Jun 2019 14:07:29 +0000 (16:07 +0200)]
Enlage buffers of info texts to 128 bytes.
This includes:
- "Real name" of a client (4th filed of the USER command).
- Server info text ("Info" configuration option).
- Admin info texts and email address ("AdminInfo1", "AdminInfo2" and
"AdminEmail" configuration options).
- Network name ("Network" configuration option).
The limit was 64 bytes before ...
Closes #258.
Alexander Barton [Sat, 29 Jun 2019 14:04:59 +0000 (16:04 +0200)]
Add ".vscode" to .gitignore file
Alexander Barton [Sat, 29 Jun 2019 14:02:52 +0000 (16:02 +0200)]
Streamline handling of invalid and unset server name
Don't exit during runtime (REHASH command, HUP signal), because the
server name can't be changed in this case anyway and the new invalid
name will be ignored.
Alexander Barton [Sat, 29 Jun 2019 14:02:18 +0000 (16:02 +0200)]
Fix and extend documentation a little bit
- Fix syntax of LINKS amd LIST commands.
- Whitespace and spelling fixes.
- Add some more information about IRCv3 support.
Alexander Barton [Sat, 29 Jun 2019 13:57:44 +0000 (15:57 +0200)]
Slightly reoder startup steps, and enhance logging
- Show name of configuration file at the beginning of start up.
- Add a message when ngIRCd is ready, including its host name.
- Show name of configuration file on REHASH (SIGHUP), too.
- Change level of "done message" to NOTICE, like "starting" & "ready".
- Initialize IO functions before channels, connections, clients, ...
Alexander Barton [Sat, 20 Apr 2019 16:51:39 +0000 (18:51 +0200)]
Update autogen.sh & INSTALL for pkg-config requirements
Fabrice Fontaine [Thu, 11 Apr 2019 21:24:36 +0000 (23:24 +0200)]
configure.ng: use pkg-config to find PpenSSL dependencies
OpenSSL can depends on lz or latomic so use pkg-config to find those
dependencies and fallback to existing mechanism.
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Closes #256.
Christoph Biedl [Mon, 28 Jan 2019 09:45:53 +0000 (10:45 +0100)]
ngircd.conf.5: Fix wording as suggested by lintian
Alexander Barton [Wed, 23 Jan 2019 22:15:02 +0000 (23:15 +0100)]
ngIRCd Release 25
Alexander Barton [Wed, 23 Jan 2019 21:45:07 +0000 (22:45 +0100)]
Platforms.txt: Add and update systems
- Update x86_64/apple/darwin16.5.0 (Apple clang 8.1)
- Add x86_64/apple/darwin17.7.0 (Apple clang 10.0)
- Add x86_64/apple/darwin18.2.0 (Apple clang 10.0)
- Add x86_64/unknown/haiku (gcc 7.3)
- Update x86_64/pc/linux-gnu (gcc 6.3.0)
shankari [Thu, 3 Jan 2019 12:44:28 +0000 (04:44 -0800)]
Fix documentation of MotdPhrase length (#254)
The max length is actually 126 (< 127), since the check errors out if
length >= 127. See
<https://github.com/ngircd/ngircd/blob/master/src/ngircd/conf.c#L1487>.
I didn't look through the history to see when the change happened. I
just happened to find during a migration that my 140 character MOTD
didn't work.
Update sample configuration file as well as the man page.
Alexander Barton [Tue, 1 Jan 2019 23:10:06 +0000 (00:10 +0100)]
2019!
Alexander Barton [Wed, 28 Nov 2018 13:13:09 +0000 (14:13 +0100)]
Implement new configuration option "MaxPenaltyTime" (#251)
This option configures the maximum penalty time increase in seconds, per
penalty event. Set to -1 for no limit (the default), 0 to disable
penalties altogether. ngIRCd doesn't use penalty increases higher than 2
seconds during normal operation, so values higher than 1 rarely make
sense.
Disabling (or reducing) penalties can greatly speed up "make check" runs
for example, see below, but are mostly a debugging feature and normally
not meant to be used on production systems!
Some example timings running "make check" from my macOS workstation:
- MaxPenaltyTime not set: 4:41,79s
- "MaxPenaltyTime = 1": 3:14,71s
- "MaxPenaltyTime = 0": 25,46s
Closes #249.
Rosen Penev [Wed, 28 Nov 2018 13:10:46 +0000 (05:10 -0800)]
Fix compilation without deprecated OpenSSL APIs (#252)
Alexander Barton [Tue, 30 Oct 2018 00:56:13 +0000 (01:56 +0100)]
Update Xcode project for latest Xcode version (10.0)
Alexander Barton [Tue, 30 Oct 2018 00:53:24 +0000 (01:53 +0100)]
Fix some compiler warnings of Apple Xcode/Clang
For example:
* src/ngircd/irc-login.c:102:21: Implicit conversion loses integer
precision: 'int' to 'char'
* src/ngircd/conn.c:1084:9: Implicit conversion turns floating-point
number into integer: 'double' to 'bool'
* src/tool/tool.c:85:10: Implicit conversion loses integer precision:
'int' to 'char'
Alexander Barton [Tue, 30 Oct 2018 00:48:31 +0000 (01:48 +0100)]
Fix typos/errors/... in file comments
Found by Xcode/Clang code analyzer. No functional changes.
Alexander Barton [Sun, 7 Oct 2018 21:54:13 +0000 (23:54 +0200)]
Update doc/Protocol.txt for IRCv3 WEBIRC extension
See commit
d0f9d3d92.
ItsOnlyBinary [Sun, 7 Oct 2018 21:33:27 +0000 (22:33 +0100)]
Allow a 5th parameter in WEBIRC
According to an IRCv3 extension, the 5th parameter can be used for extra
flags that are fine to ignore for now, but limiting WEBIRC params to 4
causes a syntax error.
See https://github.com/ircv3/ircv3-ideas/issues/12 for more information.
This closes #247.
Alexander Barton [Fri, 31 Aug 2018 23:48:17 +0000 (01:48 +0200)]
Update HowToRelease.txt: Include the website
Alexander Barton [Wed, 29 Aug 2018 21:05:45 +0000 (23:05 +0200)]
Platforms.txt: Add and update systems
- Update x86_64/unknown/freebsd10.0 (FreeBSD clang 3.3)
- Add x86_64/unknown/freebsd10.3 (FreeBSD clang 3.4)
- Update i386/pc/solaris2.11 (gcc 4.8.2)
- Add mipsel/openwrt/linux-uclibc (gcc 4.8) [cross-compiler]
- Add x86_64/pc/linux-gnu (gcc 5.4.0) [Win10/WSL]
- Platforms.txt: Update "pre-ANSI compiler" foot note.
Thanks to Götz Hoffart <goetz@hoffart.de>!
Alexander Barton [Sat, 11 Aug 2018 19:37:42 +0000 (21:37 +0200)]
ngIRCd Release 25~rc1
Alexander Barton [Sun, 20 May 2018 19:52:56 +0000 (21:52 +0200)]
Update and fix logcheck(8) rules
Alexander Barton [Sun, 1 Apr 2018 00:32:24 +0000 (02:32 +0200)]
Update config.guess and config.sub to recent versions
- config.guess: 2018-03-08
- config.sub: 2018-03-08
Alexander Barton [Sun, 1 Apr 2018 00:18:36 +0000 (02:18 +0200)]
Initialize listening socket: Streamline error message
Alexander Barton [Sun, 25 Mar 2018 21:00:45 +0000 (23:00 +0200)]
Update NEWS and ChangeLog files
Alexander Barton [Sun, 25 Mar 2018 19:55:34 +0000 (21:55 +0200)]
Correctly retry outgoing conenctions when forking a resolver failed
When ngIRCd failed to spawn a new resolver subprocess, the connection
structure was still marked as "SERVER_WAIT", and no new attempt to
connect to this server was made.
Thanks to Robert Obermeier for reporting this bug!
Closes #243.
Alexander Barton [Sun, 11 Mar 2018 20:06:03 +0000 (21:06 +0100)]
Fix use-after-free while handling ERROR during client login
This patch fixes a "use after free" bug which is hit while processing
ERROR commands while a new client is logging into the server, which
leads to only the CLIENT structure becoming freed, but not the
CONNECTION structure, too. And this leads to the daemon accessing the
already freed CLIENT structure later on ...
So now IRC_ERROR() uses the correct function Conn_Close() to correctly
free both structures.
The CONNECTION structure is cleaned up later on, and the freed CLIENT
structure can't be overwritten during normal operations, therefore this
bug normally can't crash (DoS) the service -- but you can easily hit it
when using the GCC option "-fsanitize=address", or run ngIRCd with
Valgrind.
Thanks a lot to Joseph Bisch <joseph.bisch@gmail.com> for discovering
and reporting this issue!
Alexander Barton [Sun, 11 Mar 2018 19:57:19 +0000 (20:57 +0100)]
Only send TOPIC updates to a channel when the topic actually changed
This prevents the channel from becoming flooded by unecessary TOPIC
update messages, that can happen when IRC services try to enforce a
certain topic but which is already set (at least on the local server),
for example. Therefore still forward it to all servers, but don't inform
local clients (still update setter and timestamp information, though!)
Alexander Barton [Sun, 11 Mar 2018 19:55:03 +0000 (20:55 +0100)]
Update Xcode project for latest Xcode version (9.2)
This includes adding missing and deleting obsolete file references.
Alexander Barton [Sun, 25 Feb 2018 20:44:14 +0000 (21:44 +0100)]
Use .mailmap to fix spelling of Götz Hoffart
Alexander Barton [Sun, 25 Feb 2018 20:43:39 +0000 (21:43 +0100)]
Little code cleanups, better comments
Alexander Barton [Fri, 27 Mar 2015 23:05:39 +0000 (00:05 +0100)]
User mode "C": Allow messages from servers, services, and IRC Ops
Update user mode "C" handling ("Only users that share a channel are
allowed to send messages") to behave like user mode "b" ("block private
messages and notices") and therefore allow messages from servers, services,
and IRC Operators, too.
Change proposed by "wowaname" in #ngircd, thanks!
Alexander Barton [Sun, 29 Jan 2017 20:55:50 +0000 (21:55 +0100)]
portab/Makefile: Split list into separate lines
Alexander Barton [Sun, 29 Jan 2017 20:42:11 +0000 (21:42 +0100)]
configure.ng: Split list into separate lines
Alexander Barton [Sun, 11 Feb 2018 09:22:41 +0000 (10:22 +0100)]
Update NEWS and ChangeLog files
Alexander Barton [Fri, 9 Feb 2018 21:02:21 +0000 (22:02 +0100)]
2018!
Alexander Barton [Mon, 29 Jan 2018 22:34:40 +0000 (23:34 +0100)]
Fix compiler warning in ForwardLookup()
When compiling without "working getaddrinfo()", the "af" parameter of
ForwardLookup() is unused by that function. Mark it as such!
This prevents the following compiler warning:
resolve.c:235:56: warning: unused parameter ‘af’
[-Wunused-parameter]
Alexander Barton [Mon, 29 Jan 2018 22:32:06 +0000 (23:32 +0100)]
Fix compiler warning in Option_String()
When compiling ngIRCd without support for SSL and without support for
ZLIB, gcc outputs the following warning:
irc.c:493:9: warning: variable ‘options’ set but not used
[-Wunused-but-set-variable]
Fix it by providing a dummy function in this case.
Alexander Barton [Mon, 29 Jan 2018 22:30:53 +0000 (23:30 +0100)]
Fix Get_Error() usage, take II
This should fix the following compiler warning:
resolve.c:113:1: warning: ‘Get_Error’ defined but not used
[-Wunused-function]
Which can happen, because the logic of commit
543f44bf isn't sufficient:
Get_Error() is only used when neither HAVE_WORKING_GETADDRINFO nor
HAVE_GETNAMEINFO are set ...
Enhances
543f44bf.
Closes #241.
Alexander Barton [Thu, 28 Dec 2017 17:03:12 +0000 (18:03 +0100)]
contrib/ngircd.logcheck: Add sample logcheck(8) rules
Alexander Barton [Sat, 30 Sep 2017 14:48:28 +0000 (16:48 +0200)]
Allow IRC Ops and remote servers to KILL service clients (#242)
In the end, service clients behave like regular users, therefore IRC
operators and servers should be able to KILL them: for example to
resolve nick collisions.
This is related to #238.
James Lu [Tue, 26 Sep 2017 20:50:20 +0000 (13:50 -0700)]
Don't forward KILLs to other servers if they've been blocked locally
This prevents clients from killing IRC services, for example.
Closes #238.
Closes #239.
Alexander Barton [Sat, 23 Sep 2017 11:54:39 +0000 (13:54 +0200)]
Update AUTHORS file
Alexander Barton [Sun, 17 Sep 2017 21:27:48 +0000 (23:27 +0200)]
Merge pull request #240 from bkuhls/fix_Get_Error
Fix Get_Error usage
Bernd Kuhls [Wed, 13 Sep 2017 12:07:11 +0000 (14:07 +0200)]
Fix Get_error usage
The usage of Get_Error is guarded by "ifdef h_errno" in this file, the
definition of this function should follow the same rules.
Fixes a build error when cross-compiling:
https://github.com/ngircd/ngircd/issues/223
Alexander Barton [Sun, 12 Mar 2017 21:25:08 +0000 (22:25 +0100)]
Update HowToRelease.txt
- Freshmeat is no more, and
- GitHub issues doesn't allow us to configure "releases".
Alexander Barton [Mon, 20 Feb 2017 22:29:40 +0000 (23:29 +0100)]
Services.txt: Show Atheme "name" in example configuration
Alexander Barton [Mon, 20 Feb 2017 22:06:47 +0000 (23:06 +0100)]
Services.txt: Show ngIRCd "Name" in example configuration
Alexander Barton [Fri, 20 Jan 2017 18:13:49 +0000 (19:13 +0100)]
ngIRCd Release 24
Alexander Barton [Fri, 20 Jan 2017 18:12:05 +0000 (19:12 +0100)]
Platforms.txt: Add and update systems
- Update i386/unknown/freebsd7.3 (gcc 4.2.1)
- Update i386/unknown/netbsdelf4.0 (gcc 4.1.2)
- Update x86_64/apple/darwin16.3.0 (Apple clang 8.0)
- Update x86_64/unknown/freebsd8.4 (gcc 4.2.1)
- Update x86_64/pc/linux-gnu (gcc 4.4.5)
- Update x86_64/pc/linux-gnu (gcc 4.8.4)
- Update x86_64/pc/linux-gnu (gcc 4.9.2)
- Update x86_64/pc/linux-gnu (gcc 6.2.1)
- Add x86_64/pc/linux-gnu (gcc 6.3.1)
Alexander Barton [Fri, 20 Jan 2017 16:24:22 +0000 (17:24 +0100)]
Make sure that platformtest.sh aborts when autogen.sh fails
Alexander Barton [Fri, 20 Jan 2017 15:08:46 +0000 (16:08 +0100)]
Specify Debian "source format"
Alexander Barton [Fri, 20 Jan 2017 15:05:46 +0000 (16:05 +0100)]
Update config.guess and config.sub to recent versions
- config.guess: 2016-10-02
- config.sub: 2016-11-04
Alexander Barton [Fri, 20 Jan 2017 15:04:53 +0000 (16:04 +0100)]
Build Debian packages with OpenSSL instead of GnuTLS
OpenSSL allows to reload used certificates on runtime for example (which
is very useful when using Let's Encrypt), and therefore is preferred ...
Alexander Barton [Wed, 18 Jan 2017 23:06:46 +0000 (00:06 +0100)]
Fix handling of connection pool allocation and enlargement
The daemon only enlarged its connection pool when accepting new client
connections, not when establishing new outgoing server links.
Thanks to Lukas Braun (k00mi) for reporting this!
In addition this patch streamlines the connection pool allocation, so
that there is only one place in the code allocating the pool: the now
updated Socket2Index() function. The name doesn't quite fit, but this
existing and today quite useless function (because the mapping from
socket number to connection index is 1:1 today) already became called
in almost all relevant code paths, so I decided to reuse it to keep the
patch small ...probably we want to fix the naming in a second patch?
Closes #231.
Alexander Barton [Sun, 15 Jan 2017 21:07:11 +0000 (22:07 +0100)]
2017!
Alexander Barton [Sun, 15 Jan 2017 20:25:07 +0000 (21:25 +0100)]
Update doc/RFC.txt, add RFC 7194
Alexander Barton [Sat, 7 Jan 2017 18:12:06 +0000 (19:12 +0100)]
ngIRCd Release 24~rc1
Alexander Barton [Sat, 7 Jan 2017 18:45:30 +0000 (19:45 +0100)]
Debian: Use "dh_prep" instead deprecated "dh_clean -k"
Alexander Barton [Sat, 7 Jan 2017 14:50:58 +0000 (15:50 +0100)]
ngircd.conf.5.tmpl: Fix spelling
Thanks to Christoph Biedl.
Alexander Barton [Fri, 6 Jan 2017 21:51:46 +0000 (22:51 +0100)]
Platforms.txt: Add and update systems
- Add x86_64/apple/darwin16.3.0 (Apple clang 8.0)
- Update x86_64/pc/linux-gnu (gcc 4.9.2)
- Add x86_64/pc/linux-gnu (gcc 6.2.1.)
Alexander Barton [Fri, 6 Jan 2017 21:50:24 +0000 (22:50 +0100)]
Further enhance systemd unit file
- Add more comments/documentation.
- Add dependencies for services and proxy scanners.
- Add more limit configurations.
- Allow AF_UNIX address family, required for syslog!
Alexander Barton [Thu, 5 Jan 2017 23:38:05 +0000 (00:38 +0100)]
Install systemd service file in Debian package
Alexander Barton [Thu, 5 Jan 2017 23:34:51 +0000 (00:34 +0100)]
Enhance systemd service file
- Add homepage :-)
- Remote CAP_SETUID and CAP_SETGID from CapabilityBoundingSet: This is
nor needed, because the unit already sets User=irc and Group=irc.
- Add RestrictAddressFamilies, and restrict it to AF_INET and AF_INET6.
- Read in the Debian "default files", but note: only PARAMS is supported!
Alexander Barton [Thu, 5 Jan 2017 23:30:43 +0000 (00:30 +0100)]
Update Debian package
- Update debhelper compatibility to version 9.
- Update build-dependencies.
- Change group of ngircd.conf to "irc" in postinst script (this makes
starting ngIRCd as user "irc" easier, for example when using systemd).
- Don't create /var/run/ircd during installation: this is handled by the
SysV init script and the systemd service already.
Alexander Barton [Sat, 10 Dec 2016 23:15:50 +0000 (00:15 +0100)]
Update NEWS and ChangeLog files
Alexander Barton [Thu, 8 Dec 2016 00:34:33 +0000 (01:34 +0100)]
Log privilege violations and failed OPER as "error" and to &server
Alexander Barton [Thu, 8 Dec 2016 00:01:40 +0000 (01:01 +0100)]
Immediately shut down connection on receiving ERROR
Don't wait for the peer to close the connection. This allows us to
forward the ERROR mesage in the network, instead of the very generic
"client closed connection" message.
Alexander Barton [Wed, 7 Dec 2016 23:56:39 +0000 (00:56 +0100)]
Xcode: Fix "duplicate symbols" error in current Xcode
Alexander Barton [Wed, 7 Dec 2016 23:22:05 +0000 (00:22 +0100)]
x-Line synchronization: Don't send negative durations
Alexander Barton [Wed, 7 Dec 2016 23:20:36 +0000 (00:20 +0100)]
List expiration: use same log level as when setting
And log this event to the &SERVER channel, too.
Alexander Barton [Wed, 7 Dec 2016 23:18:57 +0000 (00:18 +0100)]
Remove leftover debug message. Oops!
Alexander Barton [Wed, 7 Dec 2016 23:14:00 +0000 (00:14 +0100)]
G-LINES: Forbid remote modifications if "AllowRemoteOper" is not set
Explicitely forbid remote servers to modify "x-lines" (G-LINES) when the
"AllowRemoteOper" configuration option isn't set, even when the command
seems to originate from the remote server itself: this prevents GLINE's
to become set during server handshake in this case (what wouldn't be
possible during regular runtime when a remote IRC Op sends the command)
and what can't be undone by IRC Ops later on (because of the missing
"AllowRemoteOper" option) ...
Alexander Barton [Mon, 5 Dec 2016 22:57:19 +0000 (23:57 +0100)]
Make scripts and init-files in ./contrib executable
Alexander Barton [Mon, 5 Dec 2016 22:55:16 +0000 (23:55 +0100)]
autogen.sh: Fix some shellcheck(1) warning messages
Christoph Biedl [Mon, 5 Dec 2016 19:26:00 +0000 (20:26 +0100)]
Fix building ngIRCd with OpenSSL 1.1
At the moment, ngIRCd fails to build against OpenSSL 1.1 since the
configure check probes for the SSL_library_init symbol which was
removed, but probing for a different function availabe in both versions
solves that problem: SSL_new().
And as SSL_library_init is no longer needed, the patch boils down to
probing SSL_new to assert libssl is available, and disabling the
SSL_library_init invokation from OpenSSL 1.1 on, see also another
application[1] (NSCA-ng) that did pretty much the same.
Patch was compile-tested on both Debian jessie (OpenSSL 1.0.2) and
stretch (OpenSSL 1.1).
[1] <https://www.nsca-ng.org/cgi-bin/repository/nsca-ng/commit/?id=
8afc22031ff174f02caad4afc83fa5dff2c29f8a>
(Patch by Christoph, commit message cherry-picked from the email thread
on the mailing list by Alex. Thanks!)
Alexander Barton [Mon, 5 Dec 2016 22:33:12 +0000 (23:33 +0100)]
gcc 6.2 warnings: fix code indentation
This fixes the following correct -Wmisleading-indentation warning
messages of gcc 6.2:
irc-write.c: In function ‘IRC_SendWallops’:
irc-write.c:521:4: warning: this ‘if’ clause does not guard...
irc-write.c:524:5: note: ...this statement, but the latter is
misleadingly indented as if it is guarded by the ‘if’
irc-write.c:526:4: warning: this ‘if’ clause does not guard... []
irc-write.c:529:5: note: ...this statement, but the latter is
misleadingly indented as if it is guarded by the ‘if’
irc-info.c: In function ‘IRC_STATS’:
irc-info.c:895:3: warning: this ‘else’ clause does not guard...
irc-info.c:897:4: note: ...this statement, but the latter is
misleadingly indented as if it is guarded by the ‘else’
No functional changes, the code has been correct, but the indentation
was wrong ...
Alexander Barton [Sat, 5 Nov 2016 15:50:55 +0000 (16:50 +0100)]
Update config.guess and config.sub to recent versions
- config.guess: 2016-04-02
- config.sub: 2016-03-30
Alexander Barton [Fri, 4 Nov 2016 20:49:39 +0000 (21:49 +0100)]
Platforms.txt: Update systems
- Update x86_64/apple/darwin15.6.0 (Apple clang 8.0)
- Update x86_64/unknown/linux-gnu (gcc 4.9.2)
- Update i386/pc/solaris2.11 (gcc 4.8.2), tests have been run both on
Solaris 11.2 and Solaris 11.3 successfully, but the system identifier
is the same ... Thanks to Götz Hoffart <goetz@hoffart.de>!
Alexander Barton [Mon, 24 Oct 2016 17:24:21 +0000 (19:24 +0200)]
PAM.txt: Add note about /etc/pam.d/ngircd permissions
Alexander Barton [Sat, 19 Dec 2015 18:23:50 +0000 (19:23 +0100)]
autogen.sh, ngindent, platformtest.sh: Fix warnings of "shellcheck"
- SC2006: Use $(..) instead of legacy `..`.
- SC2015: Note that A && B || C is not if-then-else. C may run
when A is true.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Alexander Barton [Fri, 21 Oct 2016 19:33:38 +0000 (21:33 +0200)]
Update Xcode project for latest Xcode version (8.0)
Alexander Barton [Wed, 21 Sep 2016 20:47:40 +0000 (22:47 +0200)]
Update Xcode project for latest Xcode version (7.3)
Alexander Barton [Sun, 18 Sep 2016 16:46:44 +0000 (18:46 +0200)]
Updated config.sub to version 2014-09-11
Alexander Barton [Sun, 18 Sep 2016 16:10:45 +0000 (18:10 +0200)]
Add "Documentation" variables to systemd configuration files
Alexander Barton [Fri, 22 Jul 2016 17:01:04 +0000 (19:01 +0200)]
Make sure that SYSCONFDIR is always set
This is useful when ./configure hasn't been run but some source code
linters are run in an editor, for example.
Alexander Barton [Sun, 5 Jun 2016 23:08:55 +0000 (01:08 +0200)]
Add "PAMServiceName" configuration option
This setting allows to run multiple ngIRCd instances with separate PAM
configurations on each instance. If one sets it to ngircd-foo, PAM will
use /etc/pam.d/ngircd-foo instead of the default /etc/pam.d/ngircd.
Thanks to "somechris" for the patch & pull request!
Closes #226.
Christian Aistleitner [Sun, 5 Jun 2016 10:46:56 +0000 (12:46 +0200)]
Add PAMServiceName setting to specify the used PAM configuration
This setting allows to run multiple ngIRCd instances with
PAM configurations on each instance.
If one sets it to "ngircd-foo", PAM will use `/etc/pam.d/ngircd-foo`
instead of the default `/etc/pam.d/ngircd`.
Alexander Barton [Fri, 6 May 2016 22:43:30 +0000 (00:43 +0200)]
Add an ".editorconfig" file to the project