[systemd-devel] [PATCH 2/2] Initializing socket_fd inside ask_agent.

2010-09-16 Thread Luis Felipe Strano Moraes
Garbage value could have been used if there was an error creating the password file. --- src/ask-password.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ask-password.c b/src/ask-password.c index 22dda97..bcee686 100644 --- a/src/ask-password.c +++ b/src/ask-passwor

[systemd-devel] [PATCH 1/2] Moving null check for strv_path_canonicalize inside function.

2010-09-16 Thread Luis Felipe Strano Moraes
Removes the need for the caller to check that, and has the added benefit of avoiding a possible null dereference if caller wasn't careful. --- src/path-lookup.c | 15 ++- src/util.c|4 +++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/path-lookup.c

[systemd-devel] [PATCH 2/2] Support IPv6-less systems with runtime check.

2010-09-16 Thread Fabiano Fidencio
This patch introduces socket_ipv6_is_supported() call that checks for IPv6 availability. Code then check for it before using specific calls. In order to be less intrusive, this patch avoids IPv6 entries being parsed at all, this way we don't get such entries in the system and all other code paths

[systemd-devel] [PATCH 1/2] Allow disable of SysV init/rcN.d support at compile time

2010-09-16 Thread Fabiano Fidencio
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order