summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ttyutils.c: added support for higher baud rates.Thomas Osterried2022-05-021-0/+33
| | | | Signed-off-by: John Paul Morrison<jmorrison@bogomips.com>
* This fixes a bug in ttyutils.c for tty_is_locked, tty_lock() and tty_unlock()Thomas Osterried2021-02-031-6/+13
| | | | | | | | | | | | for very long path names, i.e. kissattach /dev/serial/by-id/usb-FTDI_usb_serial_converter_FTCAWZIA-if00-port 0 tnc -> Segmentation fault because buffer[50] was not only too short; the length was also not checked. Thanks to David KI6ZHD for reporting this bug. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* configure: Paranoidly quote things for m4 macro expansion safety.Ralf Baechle2019-04-111-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* configure: Replace AC_PROG_LIBTOOL with LT_INIT.Ralf Baechle2019-04-111-1/+1
| | | | | | | Recent autoconf versions have retired AC_PROG_LIBTOOL (and AM_PROG_LIBTOOL) in favor of LT_INIT. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* configure: Remove AC_TYPE_SIGNAL.Ralf Baechle2019-04-111-1/+0
| | | | | | | AC_TYPE_SIGNAL only made sense for some SysV R3 crap which is only rotten and (almost) forgotten. We also don't support it. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Update all references to the FSF's address.Ralf Baechle2019-04-1112-46/+34
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* COPYING: Update license from FSF source.Ralf Baechle2019-04-101-10/+10
| | | | | | | | | | | The checked in version is an unchanged version of the file obtained from https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt. Aside from minor whitespace changes it fixes the FSF's address which has changed many years ago plus an oversight in the instructions on how to apply the terms to other code which are not part of the actual licensing terms which are staying unchanged. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* libax25io: Link against zlib, if available.Ralf Baechle2019-04-102-1/+4
| | | | | | | | | | | | | | | So far only the presence of the zlib.h header was being tested and used if present but the result was never linked against libz. This means the resulting libax25io library had no DT_NEEDED tag so linking a libax25io built with zlib support into an application which itself wasn't being linked against zlib would result in a link errror. Whops. In the dark past the issue must have been noticed but it was papered over for the node package by linking against zlib, if present. This might fail if libax25io was built with zlib compression support but ax25-tools is being built on a system without zlib. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version to 0.0.12-rc5.libax25-0.0.12-rc5Ralf Baechle2019-04-021-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ChangeLog: Update with changes since 0.0.12-rc4.Ralf Baechle2019-04-021-1/+6
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Remove deprecated Group tag from spec file.Ralf Baechle2019-04-021-3/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Remove useless Buildroot tag from spec file.Ralf Baechle2019-04-021-1/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Move library call documentation to devel package.Ralf Baechle2019-04-021-1/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Drop useless %defattr directives.Ralf Baechle2019-04-021-3/+0
| | | | | | They only enforce what's already the default. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Add gcc to build requirements.Ralf Baechle2019-03-261-0/+1
| | | | | | This fixes mock builds. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Add distribution version to rpm release tag.Ralf Baechle2019-03-201-1/+1
| | | | | | This is required by the Fedora versioning guidelines. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Throw in a `.' between BASEVERSION and EXTRAVERSION.Ralf Baechle2019-03-201-1/+1
| | | | | | | | As required by Fedora versioning guidelines. No idea why autotools disects the version number in parts. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* .gitignore *~ files.Ralf Baechle2019-03-201-0/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* autotools: silence annoying autoreconf messages.Ralf Baechle2019-03-203-1/+3
| | | | | | | | | | | | | | | | | | | | | $ autoreconf --install --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:9: installing './compile' configure.ac:11: installing './config.guess' configure.ac:11: installing './config.sub' configure.ac:4: installing './install-sh' configure.ac:4: installing './missing' Makefile.am: installing './depcomp' $ Silenced down to the normal noise level by adding AC_CONFIG_MACRO_DIRS and ACLOCAL_AMFLAGS as suggested. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* daemon: check return value of chdir() in daemon_start_fork_pid()Ralf Baechle2017-09-081-1/+2
| | | | | | | | | | | | libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -O2 -Wall -D_FORTIFY_SOURCE=2 -flto -MT daemon.lo -MD -MP -MF .deps/daemon.Tpo -c daemon.c -fPIC -DPIC -o .libs/daemon.o daemon.c: In function ‘daemon_start_fork_pid’: daemon.c:167:2: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^~~~~~~~~~ Found by FORTIFY_SOURCE. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* daemon.c: Fix spelling mistake initialiaze -> initialize.Ralf Baechle2017-06-021-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>Thomas Osterried2016-01-201-0/+1
| | | | Added fcntl.h for open(); patch from Felix Janda <felix.janda@posteo.de.
* RPM: Build static lib package only if --enable_static was enabled.Ralf Baechle2015-06-061-0/+1
| | | | | | | | | | | | | | | In the dark ages it was standard to have a package of static libraries. This has changed and current Fedora policy for example is to not build or use static libraries anymore if possible. This package however aims to support a very wide range of distributions and configurations. So generate the rpm spec file to not build a static library package if --disable_static or equivalent was used at configure time. The default is to build static libraries. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Update ChangeLog.Ralf Baechle2015-06-061-7/+7
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Include /etc/ax25 dir into package.Ralf Baechle2015-05-281-0/+1
| | | | | | This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1168929. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Don't package AUTHORS, ChangeLog, COPYING, README with libax25-devel.Ralf Baechle2015-05-261-1/+0
| | | | | | | These files are already contained in the main libax25 rpm package which is required to be installed to use this package. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Add libax25-static package for statically linked applications.Ralf Baechle2015-05-261-1/+14
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Package /etc/ax25/{ax,nr,rs}ports into libax25 package.Ralf Baechle2015-05-261-1/+5
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Modernize daemon_start(3).Ralf Baechle2015-05-202-12/+8
| | | | | | | daemon_start(3) was implemented using ancient APIs. Modernize and simplify using setsid(). Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Ignore "compile" file.Ralf Baechle2015-05-181-0/+1
| | | | | | | | | | | | automake 1.14 will install this file into the top directory with "automake --add-missing" and complain if it's missing: $ automake configure.ac:10: error: required file './compile' not found configure.ac:10: 'automake --add-missing' can install 'compile' $ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* automake: Replace use of deprecated automake macro INCLUDES.Ralf Baechle2015-05-171-2/+2
| | | | | | | | | | This fixes the automake warning: Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') INCLUDES has been deprecated since automake 1.5. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axutils.c: Fix warning.Ralf Baechle2015-05-071-1/+2
| | | | | | | | | | | | | | libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax 25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -g -O2 -Wall -MT axutils.lo -MD -MP -MF .deps/axutils.Tpo -c axutils.c -fPIC -DPIC -o .libs/axutils.o axutils.c: In function 'rose_aton': axutils.c:169:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] printf("axutils: invalid rose address '%s' length = %d\n", addr, strlen(addr)); ^ Fixed by using a %z conversion which is a construct introduced for C99. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-174-223/+223
| | | | | | | Indentation by tabs only. Move case labels in switches are on the same level as the switch keyword. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove pointless return statements at the end of void functions.Ralf Baechle2013-06-171-1/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Always have a space between if, for, switch, while and the following `('.Ralf Baechle2013-06-173-3/+3
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove parenthesis around arguments of return statements.Ralf Baechle2013-06-172-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-179-72/+72
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove useless initializations to 0 or NULL.Ralf Baechle2013-06-174-7/+7
| | | | | | They only inflate the .data section of the binary. Initializations to FALSE are still left to do. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Delete useless definition of _LINUX_STRING_H_.Ralf Baechle2013-06-173-6/+0
| | | | | | | Originally this appeared to have been an attempt to avoid the inclusion of the kernels's <linux/string.h>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-1722-95/+95
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing blank lines.Ralf Baechle2013-06-178-11/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use dist_ prefix in Makefile.am rather than EXTRA_DIST where possible.Ralf Baechle2013-06-171-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version to 0.0.12-rc4.libax25-0.0.12-rc4Ralf Baechle2013-06-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Building the rpm requires zlib-devel.Ralf Baechle2013-06-061-0/+1
| | | | | | Building without succeeds but doesn't yield a full-featured package. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove generated file ltconfig.Ralf Baechle2013-06-042-3017/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Ignore even more generated files.Ralf Baechle2013-06-041-0/+7
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove generated file config.h.Ralf Baechle2013-06-041-92/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert .cvsignore files to .gitignoreRalf Baechle2013-06-041-9/+9
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version number to 0.0.12-rc3.libax25-0.0.12-rc3Ralf Baechle2013-05-311-1/+1
|
* Replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS.Ralf Baechle2013-05-301-2/+2
| | | | | | | Since the introduction of AC_CONFIG_HEADERS in automake 1.7 AM_CONFIG_HEADER has been deprecated and it has finally been removed in automake 1.12. So this change also generates a dependency on automake 1.7 or newer.