[Nut-upsuser] NUT 2.4.1 crashes on FreeBSD - additional info

Joerg Pulz Joerg.Pulz at frm2.tum.de
Thu Feb 19 19:20:40 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Thu, 19 Feb 2009, Arnaud Quette wrote:

> Hi Volker,
>
> I forward your request to the user list since I don't currently have much
> time to process it.
> quickly testing 2.4.1, I wasn't able to reproduce it.
>
> a question: was it working with the exact same context/config with 2.2.2?

Dear Arnaud and Volker,

attached is a very small patch which fixes the problem.
I don't know when this obviously wrong change slipped in as i'm not the 
big expert in working with SVN and the web frontends where not really 
helpful.

Anyway, i will submit a PR for the FreeBSD port now, that we get back a 
fully functional version in the tree.

Kind regards
Joerg

- -- 
The beginning is the most important part of the work.
 				-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iD8DBQFJnbELSPOsGF+KA+MRAqukAJ0RFX6UbTj6l+5rZTdWQmpjGnRXzgCeP4yU
sws8IUikZzpfm8Yptw6ftm4=
=9qu/
-----END PGP SIGNATURE-----
-------------- next part --------------
--- clients/upssched.c.orig	2009-02-19 20:01:40.000000000 +0100
+++ clients/upssched.c	2009-02-19 20:02:00.000000000 +0100
@@ -595,7 +595,7 @@
 	int	pipefd, ret;
 	struct	sockaddr_un saddr;
 
-	memset(&sa, '\0', sizeof(saddr));
+	memset(&saddr, '\0', sizeof(saddr));
 	saddr.sun_family = AF_UNIX;
 	snprintf(saddr.sun_path, sizeof(saddr.sun_path), "%s", pipefn);
 


More information about the Nut-upsuser mailing list