Commit graph

1153 commits

Author SHA1 Message Date
Tilmann Hentze 51132ae7ee wmtop: patch for process name extraction on Linux
I received the following patch from Tilmann Hentze <0xcafe@directbox.com>
in an email:

> Hello,
> there are processes, that have space characters in their names, for example
> Firefoxe's "Web Content" process.
> The current sscanf line for Linux would only considers the first part of
> the process name, e.g. "Web" and cut off the rest.
> Attached patch should consider the complete process name between parentheses.

> Further I did not touch the handling of removal of "kdeinit", since
> I am not using KDE and am not sure if the assumptions in the source code
> are still valid.

> Best Regards,
> Tilmann.

Signed-off-by: Doug Torrance <dtorrance@piedmont.edu>
2020-03-31 08:16:24 +01:00
Jeremy Sowden 53bc19104a wmbattery: bump version to 2.54. 2019-11-01 16:09:31 +00:00
Jeremy Sowden 25dacf9256 wmbattery: fix a couple of potential memory-leaks.
In `cmd_crit`, if there is an allocation failure, we return from the
function immediately and leak any previously allocated memory.  Go to
the clean-up code at the end of the function instead.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-11-01 16:09:31 +00:00
Jeremy Sowden be9c86487d wmbattery: add dist target.
Running `make dist` creates a gzipped tar-ball.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden 71596e2c91 wmbattery: AC_INIT changes.
Change package-name to "wmbattery" and add bug-report e-mail address.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden c7b24f59af wmbattery: sunos fixes.
Add includes needed to get the sonypi ioctl code to compile on Solaris.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden 321b337e8f wmbattery: make distclean fixes.
Remove Makefile instead of obsolete makeinfo.

Remove autom4te.cache.

Don't remove configure or config.h.in.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 19:59:29 +00:00
Jeremy Sowden 8b920811e7 wmbattery: bump version to 2.53.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 07:00:36 +00:00
Jeremy Sowden 2ac2f67351 wmbattery: use lower-case prefixes for PKG_CHECK_MODULES checks.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 07:00:36 +00:00
Jeremy Sowden d8d0a025e7 wmbattery: add --enable-hal and --enable-upower.
By default, upower is enabled and hal is disabled.

Fixes: 7434685dae ("wmbattery: use PKG_CHECK_MODULES, rather than calling pkg-config explicitly.")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-29 07:00:36 +00:00
Jeremy Sowden 6db6e92db3 wmbattery: bump version to 2.52.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 5d49d2f071 wmbattery: add .gitignore.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 37a58aa3eb wmbattery: use PKG_CHECK_MODULES for X libraries and headers.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 7434685dae wmbattery: use PKG_CHECK_MODULES, rather than calling pkg-config explicitly.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 08912c26f3 wmbattery: use CPPFLAGS for defining preprocessor macros.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden bf484198ea wmbattery: add $datarootdir to Makefile.in.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 7c37451d58 wmbattery: move Makefile to Makefile.in, inline the contents of makeinfo.in and remove it.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 90c467e3d2 wmbattery: remove rules generating autoconf artefacts.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden e8dd632d9b wmbattery: add autogen.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden f802c222bb wmbattery: move labels to the beginning of the line.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 8cefc3925d wmbattery: fix format-specifier.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 67e3ecd074 fookb: add autogen.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-05 15:29:33 +01:00
Jeremy Sowden 4766043a48 fookb: bumped to 4.1. 2019-10-03 23:18:15 +01:00
Jeremy Sowden d467d2c22e fookb: add default parameter values.
If there is no config-file in $HOME, use a default parameter value
instead of complaining and exiting.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-03 23:18:15 +01:00
Jeremy Sowden f6531a0130 wmix: fixed some typo's.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-27 15:05:06 +01:00
Jeremy Sowden 4bd558d111 wmix: bumped to 3.4.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-27 12:03:53 +01:00
Jeremy Sowden adf8b97d7b wmbiff: bumped to 0.4.35.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-23 22:40:50 +01:00
Jeremy Sowden 804f88f90b wmbiff: updated AUTHORS.
Added Doug Torrance and myself to the list.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-23 22:40:50 +01:00
Jeremy Sowden 0ad05f5d78 wmbiff: added support for TLS SNI.
From Debian bug #917993:

  From: Nye Liu <nyet@nyet.org>
  Subject: wmbiff: gmail (and many other IMAP servers) now require SNI
  Date: Tue, 01 Jan 2019 18:33:51 -0800

  wmbiff/gmail imap4: Need new connection to ***@gmail.com@imap.gmail.com
  wmbiff/gmail comm: certificate passed time check.
  wmbiff/gmail comm: server's certificate (OU=No SNI provided\; please fix your client.,CN=invalid2.invalid) does not match its hostname (imap.gmail.com).
  wmbiff/gmail comm: server's certificate does not match its hostname.
  wmbiff/gmail comm: to ignore this error, run wmbiff with the -skip-certificate-check option

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-23 15:38:49 +01:00
Jeremy Sowden 241ad5eae9 wmbiff: bumped to 0.4.34.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-22 23:08:13 +01:00
Michael Shriver 005d0a491d Updated GetKP script with current NOAA URLs +other bug fixes 2019-07-17 13:39:24 +01:00
Jeremy Sowden 2ec13c2f6f wmbiff: use one for-loop when creating backing XPM.
Fixes static analysis warning about uninitialized value.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden 70ceed6e38 wmbiff: fixed possible null-pointer dereference.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden de97a44cb4 wmbiff: fixed leaks.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden e672c84d1c wmbiff: removed superfluous assignment.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden ecca3b3b45 wmbiff: replaced strncpy with memcpy.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden b055b12fa5 wmbiff: stop hiding pointers behind typedefs.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden dc66a3de45 wmbiff: added .gitignore.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden b4882f131f wmbiff: removed autoconf directory.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden a239028734 wmbiff: added autogen.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-14 17:35:21 +01:00
Jeremy Sowden 5b7e5d8924 wmail: call XSetCommand().
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-10 09:43:45 +01:00
Jeremy Sowden e330aaee46 wmix: call XSetCommand().
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-10 09:43:45 +01:00
Jeremy Sowden 4feb6bd3d1 wmix: added autogen and .gitignore.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-07-10 09:43:45 +01:00
Jeremy Sowden 5c213e9e77 wmbiff: use size_t for password-lengths.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00
Jeremy Sowden 897886a68c wmbiff: fixed endianness problems parsing server-ports.
`regulo_atoi` expects a pointer-to-int and `PCU.serverPort` is a
`uint16_t`, so `&PCU.serverPort` is not compatible and we need to use an
`int` temporary variable to avoid endianness problems.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00
Jeremy Sowden d0345f1059 wmbiff: fixed endianness problems connecting to POP and IMAP servers.
`addr.sin_addr.s_addr` is a `uint32_t` in NBO, so assigning a
`struct in_addr` cast to `unsigned long` will break on 64-bit big-endian
architectures.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00
Jeremy Sowden dfa571a21b wmbiff: addr.sin_port is in NBO, so we should use ntohs(3), not htons(3).
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00
Jeremy Sowden 5d9eb1eb11 wmbiff: tidy up socket connexions.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00
Jeremy Sowden 1d9d06f152 wmbiff: correct the address size passed to connect(2).
`addr` is a `struct sockaddr_in`, not a `struct sockaddr`; using `sizeof
var` instead of `sizeof (type)` ensures that the right size is used.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00
Jeremy Sowden 3c0016eb79 wmbiff: regulo_match modifies instructions[i].destination, so remove const.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-06-28 16:26:47 +01:00