summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-1735-2548/+2548
| | | | | | | | | | | | | | 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-173-3/+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-1710-29/+29
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Remove parenthesis around arguments of return statements.Ralf Baechle2013-06-176-19/+19
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Use tabs for indentation, not spaces.Ralf Baechle2013-06-1731-560/+560
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Remove useless initializations to 0 or NULL.Ralf Baechle2013-06-1719-59/+59
| | | | | | | | | | | | | | 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>
| * Nuke trailing whitespace.Ralf Baechle2013-06-1776-767/+767
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Nuke trailing blank lines.Ralf Baechle2013-06-1722-35/+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-1711-32/+19
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* | Fix typo SIOCAX25CTLCON in perror()Thomas Osterried2015-05-011-1/+1
| | | | | | | | Signed-off-by: Thomas Osterried <thomas@osterried.de>
* | Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>Thomas Osterried2015-05-011-1/+1
| | | | | | | | | | | | | | | | | | Security patch submitted by Jaroslav Skarvada <jskarvad@redhat.com> Netrom and ROSE Addresses are copied to Node. Room was enough for Netrom, but rose addresses returned by rose_ntoa() are one byte longer (a 10 bytes string plus null-termination) which lead to an buffer overflow.
* | The current linux kernel has no limit anymore for the number of netromThomas Osterried2015-05-012-2/+4
| | | | | | | | | | | | and rose devices (previously 4 netrom, 6 rose). Thanks to Jaroslav, OK2JRQ for the patch
* | Provide defaults for user_shell if unset.Thomas Osterried2015-05-012-2/+8
| | | | | | | | | | | | | | | | | | The user_shell config variable is optional. If not specified, /bin/bash is used. Except: if create_with_useradd is configured and there's a config file /etc/default/useradd, then it's not passed to useradd in order to let the user choose. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* | Found debian wheezy useradd bug: useradd did terminates and eats 100%Thomas Osterried2015-05-011-10/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpu power, if it was called from axspawn. This could be prevented if SIGCHLD is masked. To increase security, no longer call useradd via system() but fork() and execve(). Fixed a bug when useradd failed then the login process continued anyway. Empty lines in axspawn.conf are now valid. The user_shell config variable is optional. If not specified, /bin/bash is used. Except: if create_with_useradd is configured and there's a config file /etc/default/useradd, then it's not passed to useradd in order to let him choose. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* | Fix: kernel learned qualities < configured worst_qual.Thomas Osterried2015-05-011-3/+3
|/ | | | | | | | First compute the node quality by remotely reported quality * best_quality) + 128) / 256; (the well known algorithm) and afterwards verify if it's < worst_qual. Signed-off-by: Thomas Osterried <thomas@osterried.de>
* Bump version to 0.0.10-rc4.ax25-tools-0.0.10-rc4Ralf Baechle2013-06-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix linking order.Ralf Baechle2013-06-101-2/+1
| | | | | | | This fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671016 but using a smaller patch. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix warnings about passing of string constant as argument.Ralf Baechle2013-06-062-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfsmmixer_main.o -MD -MP - MF .deps/xfsmmixer_main.Tpo -c -o xfsmmixer_main.o xfsmmixer_main.cxx xfsmmixer_main.cxx: In function ‘int main(int, char**)’: xfsmmixer_main.cxx:318:31: warning: deprecated conversion from string constant t o ‘char*’ [-Wwrite-strings] [...] g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfhdlcchpar_main.o -MD -MP -MF .deps/xfhdlcchpar_main.Tpo -c -o xfhdlcchpar_main.o xfhdlcchpar_main.cxx xfhdlcchpar_main.cxx: In function ‘int main(int, char**)’: xfhdlcchpar_main.cxx:88:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [...] g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfhdlcst_main.o -MD -MP -M F .deps/xfhdlcst_main.Tpo -c -o xfhdlcst_main.o xfhdlcst_main.cxx xfhdlcst_main.cxx: In function ‘int main(int, char**)’: xfhdlcst_main.cxx:84:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [...] g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfsmdiag_main.o -MD -MP -M F .deps/xfsmdiag_main.Tpo -c -o xfsmdiag_main.o xfsmdiag_main.cxx xfsmdiag_main.cxx: In function ‘int main(int, char**)’: xfsmdiag_main.cxx:360:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix implicit declaration caused missing #include <string.h>Ralf Baechle2013-06-061-0/+1
| | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -flto -MT user_io.o -MD -MP -MF .deps/user_io.Tpo -c -o user_io.o user_io.c user_io.c: In function ‘err’: user_io.c:38:25: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ROSE: Fix warnings caused by bogus variable initializations.Ralf Baechle2013-06-061-4/+6
| | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25 _LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -flto -MT rsparms.o -MD -MP -MF .deps/rsparms.Tpo -c -o rsparms.o rsparms.c rsparms.c: In function ‘printnb’: rsparms.c:38:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c:38:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c:39:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c:39:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c: In function ‘nodes’: rsparms.c:120:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Weed out all use of RCS strings.Ralf Baechle2013-06-0612-92/+5
| | | | | | | Their value has always been dubious and git doesn't support them so let's get rid of the clutter. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Split off doc files into ax25-tools-docs package.Ralf Baechle2013-06-041-41/+19
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove bogus removal of doc files.Ralf Baechle2013-06-041-3/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Building an rpm requires mesa-libGLU-devel.Ralf Baechle2013-06-041-0/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove all definitions of docdir from makefiles.Ralf Baechle2013-06-044-4/+0
| | | | | | | This may result in docfiles getting installed in ${prefix}/doc/, not ${prefix}/share/doc which is the convention. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Ignore even more generated files.Ralf Baechle2013-06-041-14/+23
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert .cvsignore files to .gitignoreRalf Baechle2013-06-0413-20/+20
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version number to 0.0.10-rc3.ax25-tools-0.0.10-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.
* kissattach and it's sisters are parsing axports on their own.Thomas Osterried2012-10-281-1/+1
| | | | | | | they handled lines starting with '#' correctly, but complain (and refuse to work) if the lines are empty (-- this is in contrast to programs like call which use libax25 and work with empty lines). this small patch fixes this issue.
* fixed "bashism" complain. debian Bug#690626Thomas Osterried2012-10-281-5/+5
|
* renamed variable "restrict" to "route_restrict"Thomas Osterried2012-10-013-7/+7
| | | | | | | | debian Bug#689322: "restrict" is a keyword in C99 tcpip/rip98d.c uses "restrict" as a variable name. This collides with the fact that in C99 "restrict" is a keyword. Compilers that default to C99-mode, or gcc -std=c99, fail to compile this code.
* call setsid() only if we are not already the process group leaderThomas Osterried2011-08-181-2/+6
|
* Removed check for return value of setsid(). If it's alreadyThomas Osterried2011-08-181-3/+2
| | | | process group leader, setsid() fails.
* Fix for CVE-2011-2910: check return status of setuid(), ..Thomas Osterried2011-08-182-8/+13
|
* rsparms: Fix spelling mistake in usage message.Ralf Baechle2011-07-151-1/+1
| | | | | The name of the option is -nodes, not -node. Really minor - the option parser on looks at the first two characters.
* Remove all references to rsctl.Ralf Baechle2011-07-152-2/+0
| | | | | This utility apparently was removed for ax25-utils 2.1.37 released in May 1997.
* Remove all references to nrctl.Ralf Baechle2011-07-152-2/+0
| | | | | This utility apparently was removed for ax25-utils 2.1.37 released in May 1997.
* Consistently spell digipeater.Ralf Baechle2011-07-141-1/+1
|
* Fix and make spelling cosistent.Ralf Baechle2011-07-141-2/+2
| | | | | digi-praters sounds like Astrian entertainment hightech but is plain wrong and digi-peater is an uncommon spelling.
* Move the X-based smdiag and man page into ax25-tools-x package.Ralf Baechle2011-06-251-6/+51
| | | | | | This means the installation of the plain ax25-tools package will no longer pull in tons of X libraries. This is useful on VMs or resource constrained hardware.
* Split off X programs into a separate rpm package.Ralf Baechle2011-06-251-5/+70
| | | | | This avoids lots of other packages being installed to satisfy dependencies when installing the ax25-tools rpm.
* List Thomas Sailer as author of xfhdlc{chpar,st} and xfsm{diag,mixer}.Ralf Baechle2011-06-251-1/+4
|
* Add a build dependency to libXi-devel, fltk-devel to the rpm spec fileRalf Baechle2011-06-241-1/+6
| | | | | | | | | | template. Without these packages installed everything will still build ok just xfhdlcchpar, xfhdlcst, xfsmdiag and xfsmmixer won't be built. In other words, these binaries are built optional and this is no error but as show by https://bugzilla.redhat.com/show_bug.cgi?id=545272 the behaviour is confusing and builders of an rpm probably want the whole thing.
* Fix incorrectly encoded ñ in Iñaki Arenaza's name.Ralf Baechle2011-04-081-3/+6
|
* Added support for multiport tncs like the KPC-9612 (use of only the secondThomas Osterried2010-04-132-12/+43
| | | | port). Example: This is done by "mkiss /dev/ttyUSB0 none /dev/ptmx
* Added help for arguments n* /dev/ptmxThomas Osterried2010-03-312-1/+2
|
* Christoph Rueckert <dk2crn> had an issue with OpenSuse 11.2.Thomas Osterried2010-03-311-3/+3
| | | | | | | | | | login -f -h <protocol> <as_user> did not work. login -h <protocol> -f <as_user> did work. Imho, OpenSUSE meessed up login's getopt()... On the other hand, we have no problems to switch the position of arguments - as long as there's not another linux demanding another position ;)
* Fix for a problem I introduced in 2005.Thomas Osterried2009-11-021-2/+0
| | | | Thanks to Bernard <f6bvp> for reporting this problem.
* Fix parallel installation bugs.Ralf Baechle2009-09-233-3/+3
| | | | | | | | install-exec-local hooks may be run in parallel. This may result in the attempted installation of files into directories before they have been created. Fixed by using install-exec-hook instead. Reported and axgetput-only patch by Thomas Beierlein <tb@forth-ev.de>.