chiark / gitweb /
elogind.git
5 years agocore: OOM really shouldn't be considered a deserialization parse failure
Lennart Poettering [Mon, 1 Dec 2014 23:15:13 +0000 (00:15 +0100)]
core: OOM really shouldn't be considered a deserialization parse failure

5 years agonetworkctl: print the Gateway in the status output
Tom Gundersen [Tue, 2 Dec 2014 00:05:52 +0000 (01:05 +0100)]
networkctl: print the Gateway in the status output

This is the IP address of the default route on the link, if present. A
description is printed when available (the manufacturer of the gateway NIC based
on its MAC address).

In the future we should prefer LLDP information over MAC info.

5 years agosd-rtnl: route - allow GETROUTE with AF_UNSPEC
Tom Gundersen [Tue, 2 Dec 2014 09:46:14 +0000 (10:46 +0100)]
sd-rtnl: route - allow GETROUTE with AF_UNSPEC

5 years agoshared: udev-util - add hwdb cleanup macro
Tom Gundersen [Tue, 2 Dec 2014 09:19:14 +0000 (10:19 +0100)]
shared: udev-util - add hwdb cleanup macro

5 years agosd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}
Tom Gundersen [Tue, 2 Dec 2014 00:35:11 +0000 (01:35 +0100)]
sd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}

5 years agosd-rtnl: add typesystem for RTM_*NEIGH
Tom Gundersen [Tue, 2 Dec 2014 00:23:47 +0000 (01:23 +0100)]
sd-rtnl: add typesystem for RTM_*NEIGH

5 years agosd-rtnl: add a bit more debugging in case a message is dropped
Tom Gundersen [Mon, 1 Dec 2014 23:59:34 +0000 (00:59 +0100)]
sd-rtnl: add a bit more debugging in case a message is dropped

5 years agosd-rtnl: message - allow checking for attributes without reading out their contents
Tom Gundersen [Mon, 1 Dec 2014 23:59:02 +0000 (00:59 +0100)]
sd-rtnl: message - allow checking for attributes without reading out their contents

5 years agosd-rtnl: add sd_rtnl_message_route_get_family
Tom Gundersen [Mon, 1 Dec 2014 23:58:17 +0000 (00:58 +0100)]
sd-rtnl: add sd_rtnl_message_route_get_family

5 years agobuild-sys: configure the list of system users, files and directories
Łukasz Stelmach [Fri, 28 Nov 2014 14:59:59 +0000 (15:59 +0100)]
build-sys: configure the list of system users, files and directories

Choose which system users defined in sysusers.d/systemd.conf and files
or directories in tmpfiles.d/systemd.conf, should be provided depending
on comile-time configuration.

5 years agoman: BusName= is not optional for Type!=bus
Umut Tezduyar Lindskog [Sun, 30 Nov 2014 08:32:39 +0000 (09:32 +0100)]
man: BusName= is not optional for Type!=bus

http://lists.freedesktop.org/archives/systemd-devel/2014-November/025492.html

5 years agoman: delete ZX as sole compression; "Compress=" as boolean
Chris Atkinson [Mon, 1 Dec 2014 03:13:06 +0000 (22:13 -0500)]
man: delete ZX as sole compression; "Compress=" as boolean

In man journald.conf, removes reference to XZ as sole form of
compression. See commit d89c8fdf48c7bad5816b9f2e77e8361721f22517.

In man coredump.conf, clarifies that "Compression=" controls existence,
not type, of compression.

5 years agoresolved: make TXT RR generation and parsing more in-line with RFC 6763, section 6.1
Lennart Poettering [Mon, 1 Dec 2014 02:08:55 +0000 (03:08 +0100)]
resolved: make TXT RR generation and parsing more in-line with RFC 6763, section 6.1

The RFC says to encode an single empty TXT string instead of an empty
TXT array. It also says to treat a zero-length TXT RR as a TXT array
with a single zero-length string.

5 years agoupdate TODO
Lennart Poettering [Mon, 1 Dec 2014 02:06:50 +0000 (03:06 +0100)]
update TODO

5 years agocore: warn and ignore SysVStartPriority=
Zbigniew Jędrzejewski-Szmek [Sun, 30 Nov 2014 15:42:53 +0000 (10:42 -0500)]
core: warn and ignore SysVStartPriority=

Option was being parsed but not used for anything.

5 years agoWhen warning about unsupported options, be more detailed
Zbigniew Jędrzejewski-Szmek [Sun, 30 Nov 2014 15:21:49 +0000 (10:21 -0500)]
When warning about unsupported options, be more detailed

5 years agoupdate TODO
Lennart Poettering [Sun, 30 Nov 2014 23:21:04 +0000 (00:21 +0100)]
update TODO

5 years agocgroup-util: Don't send SIGCONT after SIGKILL
Ross Lagerwall [Sat, 29 Nov 2014 11:31:30 +0000 (11:31 +0000)]
cgroup-util: Don't send SIGCONT after SIGKILL

5 years agotimesyncd: minor simplification
Lennart Poettering [Sun, 30 Nov 2014 01:31:38 +0000 (02:31 +0100)]
timesyncd: minor simplification

5 years agojournald: close passed fds we cannot make sense of
Lennart Poettering [Sat, 29 Nov 2014 23:51:45 +0000 (00:51 +0100)]
journald: close passed fds we cannot make sense of

This is mostly likely the audit socket, and we really should close it
if we cannot make sense of it, since as long as it is open the kernel
might disable the kmsg forwarding of audit msgs, and we should avoid
that, since audit msgs might get completely lost then.

I also downgraded the log message we show a bit, after all things should
really work fine, and we proceed fine with it.

5 years agoman: document that we set both soft and hard limits for Limit directives
Ronny Chevalier [Sun, 30 Nov 2014 19:28:36 +0000 (20:28 +0100)]
man: document that we set both soft and hard limits for Limit directives

See
http://cgit.freedesktop.org/systemd/systemd/tree/src/core/load-fragment.c#n1100

5 years agoman: fix typos
Ronny Chevalier [Sun, 30 Nov 2014 19:20:59 +0000 (20:20 +0100)]
man: fix typos

5 years agoman: document equivalence between Limit directives and ulimit
Ronny Chevalier [Sun, 30 Nov 2014 19:12:13 +0000 (20:12 +0100)]
man: document equivalence between Limit directives and ulimit

See https://bugs.freedesktop.org/show_bug.cgi?id=80341

5 years agoman: fix link to systemd-networkd-wait-online.service in systemd-networkd.service(8)
Chris Mayo [Sun, 30 Nov 2014 14:44:25 +0000 (14:44 +0000)]
man: fix link to systemd-networkd-wait-online.service in systemd-networkd.service(8)

5 years agoman: add a link to systemd-coredump(8) in Description of coredump.conf(5)
Chris Mayo [Sun, 30 Nov 2014 14:45:29 +0000 (14:45 +0000)]
man: add a link to systemd-coredump(8) in Description of coredump.conf(5)

5 years agoterminal/screen: fix GL/GR double-mapping
David Herrmann [Sun, 30 Nov 2014 13:37:12 +0000 (14:37 +0100)]
terminal/screen: fix GL/GR double-mapping

We must not call screen_map() multiple times for the same input char. Fix
the double-mapping for GL/GR maps are correctly applied.

5 years agodelta: Fix broken separator support
Alison Chaiken [Sun, 30 Nov 2014 11:14:48 +0000 (12:14 +0100)]
delta: Fix broken separator support

systemd-delta man page promises that multiple types of deltas will be
concatenated if they are listed with a comma as separator.  Replace
FOREACH_WORD() with FOREACH_WORD_SEPARATOR() to restore the functionality.

5 years agobuild-sys: add missing tests files to EXTRA_DIST
Ronny Chevalier [Sun, 30 Nov 2014 02:17:20 +0000 (03:17 +0100)]
build-sys: add missing tests files to EXTRA_DIST

5 years agocore: remove unused variables
Ronny Chevalier [Sun, 30 Nov 2014 01:33:35 +0000 (02:33 +0100)]
core: remove unused variables

5 years agonetwork: remove unused variable
Ronny Chevalier [Sun, 30 Nov 2014 01:16:30 +0000 (02:16 +0100)]
network: remove unused variable

5 years agotests: use assert_se instead of assert
Ronny Chevalier [Sun, 30 Nov 2014 01:16:19 +0000 (02:16 +0100)]
tests: use assert_se instead of assert

Otherwise they can be optimized away with -DNDEBUG

5 years agoresolve: remove unused variable
Ronny Chevalier [Sun, 30 Nov 2014 01:04:50 +0000 (02:04 +0100)]
resolve: remove unused variable

5 years agosystemctl: remove unused variable
Thomas Hindoe Paaboel Andersen [Sat, 29 Nov 2014 23:36:16 +0000 (00:36 +0100)]
systemctl: remove unused variable

5 years agoNEWS: Document new .conf.d configuration directories
Josh Triplett [Sat, 29 Nov 2014 22:01:47 +0000 (14:01 -0800)]
NEWS: Document new .conf.d configuration directories

Also provide guidance to distributions, to make sure they don't start
dropping files in the configuration directories in /etc/.

5 years agoudev: strings in C are NUL-terminated anyway, no need to add a second NUL...
Lennart Poettering [Sat, 29 Nov 2014 23:21:49 +0000 (00:21 +0100)]
udev: strings in C are NUL-terminated anyway, no need to add a second NUL...

5 years agojournald-remote,journal-upload: Support .d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:07:28 +0000 (01:07 -0800)]
journald-remote,journal-upload: Support .d directories in the usual search paths

5 years agotimesyncd: Support timesyncd.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:07:21 +0000 (01:07 -0800)]
timesyncd: Support timesyncd.conf.d directories in the usual search paths

5 years agoresolved: Support resolved.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:07:11 +0000 (01:07 -0800)]
resolved: Support resolved.conf.d directories in the usual search paths

5 years agocoredump: Support coredump.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:06:48 +0000 (01:06 -0800)]
coredump: Support coredump.conf.d directories in the usual search paths

5 years agobootchart: Support bootchart.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:06:41 +0000 (01:06 -0800)]
bootchart: Support bootchart.conf.d directories in the usual search paths

5 years agosystemd-sleep: Support sleep.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:06:28 +0000 (01:06 -0800)]
systemd-sleep: Support sleep.conf.d directories in the usual search paths

5 years agojournald: Support journald.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:06:20 +0000 (01:06 -0800)]
journald: Support journald.conf.d directories in the usual search paths

5 years agocore: Support system.conf.d and user.conf.d directories in the usual search paths
Josh Triplett [Sat, 29 Nov 2014 09:06:04 +0000 (01:06 -0800)]
core: Support system.conf.d and user.conf.d directories in the usual search paths

5 years agoman: Factor out a common snippet for .d directories and precedence
Josh Triplett [Sat, 29 Nov 2014 09:05:43 +0000 (01:05 -0800)]
man: Factor out a common snippet for .d directories and precedence

Several manpages contain duplicate text describing a standard set of .d
configuration directories, with the usual sorting, precedence,
overrides, and so on.  Factor this common text out using XInclude before
proliferating it even further.

5 years agoman/logind.conf.xml: Make "man logind.conf.d" work too
Josh Triplett [Sat, 29 Nov 2014 09:05:20 +0000 (01:05 -0800)]
man/logind.conf.xml: Make "man logind.conf.d" work too

5 years agosystemctl: add edit verb
Ronny Chevalier [Wed, 29 Oct 2014 15:22:02 +0000 (16:22 +0100)]
systemctl: add edit verb

It helps editing units by either creating a drop-in file, like
/etc/systemd/system/my.service.d/override.conf, or by copying the
original unit from /usr/lib/systemd/ to /etc/systemd/ if the --full
option is specified.

It invokes an editor on temporary files related to the unit files and
if the editor exited successfully, then it renames the temporary files
to their original names (e.g. my.service or override.conf) and
daemon-reload is invoked.

If the temporary file is empty the modification is canceled.

See https://bugzilla.redhat.com/show_bug.cgi?id=906824

5 years agoman: update description of default extension for isolate
Chris Atkinson [Fri, 28 Nov 2014 20:27:56 +0000 (15:27 -0500)]
man: update description of default extension for isolate

5 years agonspawn: fix unused variable warning
Zbigniew Jędrzejewski-Szmek [Sat, 29 Nov 2014 16:06:05 +0000 (11:06 -0500)]
nspawn: fix unused variable warning

5 years agodelta: diff returns 1 when files differ, ignore this
Zbigniew Jędrzejewski-Szmek [Sat, 29 Nov 2014 15:28:01 +0000 (10:28 -0500)]
delta: diff returns 1 when files differ, ignore this

https://bugs.debian/org/771397

5 years agoshared: install - report error if mask symlink can not be marked for removal
Tom Gundersen [Sat, 29 Nov 2014 10:14:48 +0000 (11:14 +0100)]
shared: install - report error if mask symlink can not be marked for removal

5 years agoshared: time-dst - ensure nulstr is null terminated
Tom Gundersen [Sat, 29 Nov 2014 09:40:21 +0000 (10:40 +0100)]
shared: time-dst - ensure nulstr is null terminated

Fixes CID #1237772.

5 years agoREADME: notice kernel config for CPUQuota
WaLyong Cho [Tue, 18 Nov 2014 15:13:43 +0000 (00:13 +0900)]
README: notice kernel config for CPUQuota

5 years agomount: use DEFINE_TRIVIAL_CLEANUP_FUNC
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 22:04:24 +0000 (17:04 -0500)]
mount: use DEFINE_TRIVIAL_CLEANUP_FUNC

5 years agoudev: rules - ignore the lack of trailing newline
Tom Gundersen [Fri, 28 Nov 2014 20:51:45 +0000 (21:51 +0100)]
udev: rules - ignore the lack of trailing newline

Also accept '\r' as newline character.

This dropps warnings of the type:

  invalid key/value pair in file /usr/lib/udev/rules.d/40-usb-media-players.rules
  on line 26, starting at character 25 ('')

5 years agoudev: rules - print the first invalid character
Tom Gundersen [Fri, 28 Nov 2014 20:46:34 +0000 (21:46 +0100)]
udev: rules - print the first invalid character

The current code would print the character following the first invalid
character.

Given an udev rules-file without a trailing newline we would otherwise print
garbage:

  invalid key/value pair in file /usr/lib/udev/rules.d/40-usb-media-players.rules
  on line 26, starting at character 25 ('m')

This is now changed to print

  invalid key/value pair in file /usr/lib/udev/rules.d/40-usb-media-players.rules
  on line 26, starting at character 25 ('')

(still not very good as printing \0 just gives the empty string)

5 years agoudev: rules - modernise add_rule a bit
Tom Gundersen [Fri, 28 Nov 2014 20:44:31 +0000 (21:44 +0100)]
udev: rules - modernise add_rule a bit

5 years agosd-bus: move packet header definition to bus-protocol.h
Lennart Poettering [Fri, 28 Nov 2014 20:12:03 +0000 (21:12 +0100)]
sd-bus: move packet header definition to bus-protocol.h

5 years agotreewide: convert some left-over (usec_t) -1 to USEC_INFINITY
Lennart Poettering [Fri, 28 Nov 2014 19:52:55 +0000 (20:52 +0100)]
treewide: convert some left-over (usec_t) -1 to USEC_INFINITY

5 years agotreewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1
Lennart Poettering [Fri, 28 Nov 2014 19:51:01 +0000 (20:51 +0100)]
treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1

5 years agoudevadm hwdb: discard extra leading whitespaces in hwdb
Peter Hutterer [Thu, 27 Nov 2014 05:19:44 +0000 (15:19 +1000)]
udevadm hwdb: discard extra leading whitespaces in hwdb

Currently a property in the form of
  FOO=bar
is stored as " FOO=bar", i.e. the property name contains a leading space.
That's quite hard to spot.

This patch discards all extra whitespaces but the first one which is required
by libudev's hwdb_add_property.

[zj: modify the check a bit]

https://bugs.freedesktop.org/show_bug.cgi?id=82311

5 years agomount: constify MountParameters
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 19:22:47 +0000 (14:22 -0500)]
mount: constify MountParameters

5 years agomount: deal with inotify queue overflow
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 19:19:03 +0000 (14:19 -0500)]
mount: deal with inotify queue overflow

Overflow is very unlikely, since we are watching a privileged directory,
but could be triggered if thousands of mounts are suddently executed.

5 years agomount: create directory before adding watches on it
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 18:43:09 +0000 (13:43 -0500)]
mount: create directory before adding watches on it

5 years agomount: be more careful about errors when parsing mtab
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 18:02:15 +0000 (13:02 -0500)]
mount: be more careful about errors when parsing mtab

Fixup for 4a3a9ef610.

5 years agomount: simplify mount_needs_network check
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 06:50:05 +0000 (01:50 -0500)]
mount: simplify mount_needs_network check

5 years agomount: check options as well as fstype for network mounts
Chris Leech [Mon, 24 Nov 2014 04:33:38 +0000 (20:33 -0800)]
mount: check options as well as fstype for network mounts

When creating a new mount unit after an event on /proc/self/mountinfo,
check the mount options as well as the fstype to determine if this is a
remote mount that requires network access.

5 years agomount: add remote-fs dependencies if needed after change
Chris Leech [Mon, 24 Nov 2014 04:33:40 +0000 (20:33 -0800)]
mount: add remote-fs dependencies if needed after change

This is an attempt to add it the remote-fs dependencies to a mount unit
if the options change, like when the utab options are picked up after
mountinfo has already been processed.  It just adds the remote-fs
dependencies, leaving the local-fs ones in place.

With this change I always get mount units with proper remote-fs
dependencies when mounted with the _netdev option.

5 years agomount: monitor for utab changes with inotify
Chris Leech [Mon, 24 Nov 2014 04:33:39 +0000 (20:33 -0800)]
mount: monitor for utab changes with inotify

Parsing the mount table with libmount races against the mount command,
which will handle the actual mounting before updating utab.  This means
the poll event on /proc/self/mountinfo can kick of a reparse in systemd
before the utab information is available.

This change adds in an additional event source using inotify to watch
for changes to utab.  It only watches for IN_MOVED_TO events, matching
libmount behavior of always overwriting this file using rename(2).

This does add a second pass through the mount table parsing when utab is
updated.

5 years agomount: use libmount to enumerate /proc/self/mountinfo
Chris Leech [Mon, 24 Nov 2014 04:33:37 +0000 (20:33 -0800)]
mount: use libmount to enumerate /proc/self/mountinfo

This lets libmount add in user options from /run/mount/utab, like
_netdev which is needed to get proper ordering against remote-fs.target

5 years agocoredump: simplify a few things by allocating small fields on the stack rather than...
Lennart Poettering [Fri, 28 Nov 2014 19:29:24 +0000 (20:29 +0100)]
coredump: simplify a few things by allocating small fields on the stack rather than heap

5 years agocoredump: rework compose_open_fds()
Lennart Poettering [Fri, 28 Nov 2014 19:15:18 +0000 (20:15 +0100)]
coredump: rework compose_open_fds()

Use FOREACH_DIRENT() and FOREACH_LINE() macros instead of manual loops.

Don't clobber return parameters on failure.

Simplify some other things.

5 years agoupdate TODO
Lennart Poettering [Fri, 28 Nov 2014 18:17:27 +0000 (19:17 +0100)]
update TODO

5 years agosd-bus: add support for matches against arrays of strings in messages
Lennart Poettering [Fri, 28 Nov 2014 18:16:37 +0000 (19:16 +0100)]
sd-bus: add support for matches against arrays of strings in messages

5 years agosd-bus: if a NULL signatures is passed to sd_bus_message_skip(), make it skip a singl...
Lennart Poettering [Fri, 28 Nov 2014 18:16:25 +0000 (19:16 +0100)]
sd-bus: if a NULL signatures is passed to sd_bus_message_skip(), make it skip a single element of any type

5 years agosd-bus: add arrays of strings in the bloom filter
Lennart Poettering [Fri, 28 Nov 2014 16:44:05 +0000 (17:44 +0100)]
sd-bus: add arrays of strings in the bloom filter

Let's do this right from the beginning, to prepare ground for udev
messages that most likely want to store list of strings (for device
tags) in messages, and filter on them.

5 years agoupdate TODO
Lennart Poettering [Fri, 28 Nov 2014 16:03:48 +0000 (17:03 +0100)]
update TODO

5 years agosd-bus: make more connection properties readable
Lennart Poettering [Fri, 28 Nov 2014 16:03:35 +0000 (17:03 +0100)]
sd-bus: make more connection properties readable

5 years agosd-bus: add new sd_bus_get_address() for querying the current bus address
Lennart Poettering [Fri, 28 Nov 2014 15:51:45 +0000 (16:51 +0100)]
sd-bus: add new sd_bus_get_address() for querying the current bus address

Also, update "busctl" to show this in its output.

5 years agosd-bus: rename sd_bus_get_owner_id() → sd_bus_get_bus_id()
Lennart Poettering [Fri, 28 Nov 2014 15:38:47 +0000 (16:38 +0100)]
sd-bus: rename sd_bus_get_owner_id() → sd_bus_get_bus_id()

The ID returned really doesn't identify the owner, but the bus instance,
hence fix this misnaming.

Also, update "busctl status" to show the ID in its output.

5 years agotreewide: another round of simplifications
Michal Schmidt [Fri, 28 Nov 2014 18:57:32 +0000 (19:57 +0100)]
treewide: another round of simplifications

Using the same scripts as in f647962d64e "treewide: yet more log_*_errno
+ return simplifications".

5 years agotreewide: use log_*_errno whenever %m is in the format string
Michal Schmidt [Fri, 28 Nov 2014 18:29:59 +0000 (19:29 +0100)]
treewide: use log_*_errno whenever %m is in the format string

If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.

Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'

Plus some whitespace, linewrap, and indent adjustments.

5 years agocore: fix return value in error path after sd_event_add_io() failure
Michal Schmidt [Fri, 28 Nov 2014 18:20:59 +0000 (19:20 +0100)]
core: fix return value in error path after sd_event_add_io() failure

sd_event_add_io() does not set errno, it returns negative errno.

Noticed during log_*_errno conversions.

5 years agotreewide: a few more log_*_errno + return simplifications
Michal Schmidt [Fri, 28 Nov 2014 18:13:53 +0000 (19:13 +0100)]
treewide: a few more log_*_errno + return simplifications

The one in tmpfiles.c:create_item() even looks like it fixes a bug.

5 years agotreewide: yet more log_*_errno + return simplifications
Michal Schmidt [Fri, 28 Nov 2014 17:50:43 +0000 (18:50 +0100)]
treewide: yet more log_*_errno + return simplifications

Using:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
 'local $/;
  local $_=<>;
  s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg;
  print;'
 $f
done

And a couple of manual whitespace fixups.

5 years agoRevert "systemctl: append default suffix only if none present"
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 17:25:09 +0000 (12:25 -0500)]
Revert "systemctl: append default suffix only if none present"

This reverts a chunk out of commit 5e03c6e3b517286bbd65b48d88f60e5b83721894
which was trying to pass NULL to the the '.service' default. Anyway,
it seems better to be explicit.

5 years agotreewide: more log_*_errno + return simplifications
Michal Schmidt [Fri, 28 Nov 2014 17:23:20 +0000 (18:23 +0100)]
treewide: more log_*_errno + return simplifications

5 years agosystemctl: append default suffix only if none present
Zbigniew Jędrzejewski-Szmek [Fri, 28 Nov 2014 16:28:10 +0000 (11:28 -0500)]
systemctl: append default suffix only if none present

Simplify unit_name_mangle() and unit_name_mangle_with_suffix() to
always behave the same, and only append a suffix if there is no
type suffix. If a user says 'isolate blah.device' it is better to
return an error that the type cannot be isolated, than to try to
isolate blah.device.target.

5 years agoudevd: don't set receive buffer size when socket activated
Tom Gundersen [Fri, 28 Nov 2014 15:58:32 +0000 (16:58 +0100)]
udevd: don't set receive buffer size when socket activated

The socket unit does this, so no need to redo it in udevd.

5 years agotreewide: simplify log_*_errno(r,...) immediately followed by "return r"
Michal Schmidt [Fri, 28 Nov 2014 16:34:26 +0000 (17:34 +0100)]
treewide: simplify log_*_errno(r,...) immediately followed by "return r"

5 years agotreewide: more log_*_errno() conversions, multiline calls
Michal Schmidt [Fri, 28 Nov 2014 16:09:20 +0000 (17:09 +0100)]
treewide: more log_*_errno() conversions, multiline calls

Basically:

find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
 local $_=<>;
 s/log_(debug|info|notice|warning|error|emergency)\("([^"]*)%s"([^;]*),\s*strerror\(-?([->a-zA-Z_]+)\)\);/log_\1_errno(\4, "\2%m"\3);/gms;print;' \
 $f; done

Plus manual indentation fixups.

5 years agohostnamectl: Exit with zero on success
Martin Pitt [Fri, 28 Nov 2014 14:38:05 +0000 (15:38 +0100)]
hostnamectl: Exit with zero on success

In show_all_names(), bus_map_all_properties() returns 1 on success which is
then used as the return code of show_all_names() and eventually main(). Exit
with zero in main() on all nonnegative results to guard against similar errors.

5 years agoudev,update-done: more log_xyz_errno() conversions
Lennart Poettering [Fri, 28 Nov 2014 15:32:26 +0000 (16:32 +0100)]
udev,update-done: more log_xyz_errno() conversions

5 years agosd-bus: make sure %m resolves to the specified error in bus_error_set_errnofv()
Lennart Poettering [Fri, 28 Nov 2014 15:30:53 +0000 (16:30 +0100)]
sd-bus: make sure %m resolves to the specified error in bus_error_set_errnofv()

5 years agoupdate TODO
Lennart Poettering [Fri, 28 Nov 2014 15:16:18 +0000 (16:16 +0100)]
update TODO

5 years agobus-proxy: automatically detect scope of bus and derive which XML snippets to load...
Lennart Poettering [Fri, 28 Nov 2014 15:14:39 +0000 (16:14 +0100)]
bus-proxy: automatically detect scope of bus and derive which XML snippets to load from that

5 years agosd-bus: rename default bus address constants, they aren't "paths" but "addresses"
Lennart Poettering [Fri, 28 Nov 2014 15:05:43 +0000 (16:05 +0100)]
sd-bus: rename default bus address constants, they aren't "paths" but "addresses"

5 years agosd-bus: add new call sd_bus_get_scope() for querying whether one is connected to...
Lennart Poettering [Fri, 28 Nov 2014 14:59:05 +0000 (15:59 +0100)]
sd-bus: add new call sd_bus_get_scope() for querying whether one is connected to a system or a user bus

5 years agosd-bus: rework credential query logic
Lennart Poettering [Fri, 28 Nov 2014 14:58:03 +0000 (15:58 +0100)]
sd-bus: rework credential query logic

Also, make the call to free kdbus slices generic and use it everywhere

5 years agotreewide: more log_*_errno() conversions
Michal Schmidt [Fri, 28 Nov 2014 13:45:55 +0000 (14:45 +0100)]
treewide: more log_*_errno() conversions

5 years agotreewide: drop unnecessary trailing \n in log_*() calls
Michal Schmidt [Fri, 28 Nov 2014 13:26:31 +0000 (14:26 +0100)]
treewide: drop unnecessary trailing \n in log_*() calls