Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-11-28 | mount: use libmount to enumerate /proc/self/mountinfo | Chris Leech | |
This lets libmount add in user options from /run/mount/utab, like _netdev which is needed to get proper ordering against remote-fs.target | |||
2014-11-28 | coredump: simplify a few things by allocating small fields on the stack ↵ | Lennart Poettering | |
rather than heap | |||
2014-11-28 | coredump: rework compose_open_fds() | Lennart Poettering | |
Use FOREACH_DIRENT() and FOREACH_LINE() macros instead of manual loops. Don't clobber return parameters on failure. Simplify some other things. | |||
2014-11-28 | sd-bus: add support for matches against arrays of strings in messages | Lennart Poettering | |
2014-11-28 | sd-bus: if a NULL signatures is passed to sd_bus_message_skip(), make it ↵ | Lennart Poettering | |
skip a single element of any type | |||
2014-11-28 | sd-bus: add arrays of strings in the bloom filter | Lennart Poettering | |
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. | |||
2014-11-28 | sd-bus: make more connection properties readable | Lennart Poettering | |
2014-11-28 | sd-bus: add new sd_bus_get_address() for querying the current bus address | Lennart Poettering | |
Also, update "busctl" to show this in its output. | |||
2014-11-28 | sd-bus: rename sd_bus_get_owner_id() → sd_bus_get_bus_id() | Lennart Poettering | |
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. | |||
2014-11-28 | treewide: another round of simplifications | Michal Schmidt | |
Using the same scripts as in f647962d64e "treewide: yet more log_*_errno + return simplifications". | |||
2014-11-28 | treewide: use log_*_errno whenever %m is in the format string | Michal Schmidt | |
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. | |||
2014-11-28 | core: fix return value in error path after sd_event_add_io() failure | Michal Schmidt | |
sd_event_add_io() does not set errno, it returns negative errno. Noticed during log_*_errno conversions. | |||
2014-11-28 | treewide: a few more log_*_errno + return simplifications | Michal Schmidt | |
The one in tmpfiles.c:create_item() even looks like it fixes a bug. | |||
2014-11-28 | treewide: yet more log_*_errno + return simplifications | Michal Schmidt | |
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. | |||
2014-11-28 | Revert "systemctl: append default suffix only if none present" | Zbigniew Jędrzejewski-Szmek | |
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. | |||
2014-11-28 | treewide: more log_*_errno + return simplifications | Michal Schmidt | |
2014-11-28 | systemctl: append default suffix only if none present | Zbigniew Jędrzejewski-Szmek | |
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. | |||
2014-11-28 | udevd: don't set receive buffer size when socket activated | Tom Gundersen | |
The socket unit does this, so no need to redo it in udevd. | |||
2014-11-28 | treewide: simplify log_*_errno(r,...) immediately followed by "return r" | Michal Schmidt | |
2014-11-28 | treewide: more log_*_errno() conversions, multiline calls | Michal Schmidt | |
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. | |||
2014-11-28 | hostnamectl: Exit with zero on success | Martin Pitt | |
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. | |||
2014-11-28 | udev,update-done: more log_xyz_errno() conversions | Lennart Poettering | |
2014-11-28 | sd-bus: make sure %m resolves to the specified error in bus_error_set_errnofv() | Lennart Poettering | |
2014-11-28 | bus-proxy: automatically detect scope of bus and derive which XML snippets ↵ | Lennart Poettering | |
to load from that | |||
2014-11-28 | sd-bus: rename default bus address constants, they aren't "paths" but ↵ | Lennart Poettering | |
"addresses" | |||
2014-11-28 | sd-bus: add new call sd_bus_get_scope() for querying whether one is ↵ | Lennart Poettering | |
connected to a system or a user bus | |||
2014-11-28 | sd-bus: rework credential query logic | Lennart Poettering | |
Also, make the call to free kdbus slices generic and use it everywhere | |||
2014-11-28 | treewide: more log_*_errno() conversions | Michal Schmidt | |
2014-11-28 | treewide: drop unnecessary trailing \n in log_*() calls | Michal Schmidt | |
2014-11-28 | core: two more log_unit_*_errno() conversions | Michal Schmidt | |
2014-11-28 | core: convert log_unit_*() to log_unit_*_errno() | Michal Schmidt | |
Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_unit_(debug|info|notice|warning|error|emergency)\(([^"]+), "(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_unit_\1_errno(\2, \5, "\3%m"\4);/' | |||
2014-11-28 | core: add log_unit_*_errno() macros | Michal Schmidt | |
2014-11-28 | treewide: no need to negate errno for log_*_errno() | Michal Schmidt | |
It corrrectly handles both positive and negative errno values. | |||
2014-11-28 | treewide: auto-convert the simple cases to log_*_errno() | Michal Schmidt | |
As a followup to 086891e5c1 "log: add an "error" parameter to all low-level logging calls and intrdouce log_error_errno() as log calls that take error numbers", use sed to convert the simple cases to use the new macros: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/' Multi-line log_*() invocations are not covered. And we also should add log_unit_*_errno(). | |||
2014-11-28 | shared: fix log_emergency_errno macro | Michal Schmidt | |
It was not passing the error argument. | |||
2014-11-28 | kdbus: when running in a container, don't complain that we cannot write to /sys | Lennart Poettering | |
2014-11-28 | log: change log_xyz_errno() calls to always return the negative error | Lennart Poettering | |
This enables us to write things like this: int open_some_file(void) { fd = open("/dev/foobar", O_RDWR|O_CLOEXEC); if (fd < 0) return log_error_errno(errno, "Failed to reboot: %m"); return fd; } Which is function that returns -errno on failure, as well as printing an error message, all in one line. | |||
2014-11-28 | log: make socket address structs static const | Lennart Poettering | |
2014-11-28 | log: also set errno to the passed error code before processing format string ↵ | Lennart Poettering | |
in log_struct() That way the caller may use %m to print the specified error. | |||
2014-11-28 | core: only override kdbus attach mask when running as PID 1 | Lennart Poettering | |
2014-11-28 | sd-bus: the attach_mask kernel module parameter is 64bit now, hence ↵ | Lennart Poettering | |
initialize it as such | |||
2014-11-28 | log: allow negative errno values | Lennart Poettering | |
sd_bus_error_set_errno() allows negative errors too, hence, be equally nice. | |||
2014-11-28 | log: fix order of log_unit_struct() to match other logging calls | Lennart Poettering | |
Also, while we are at it, introduce some syntactic sugar for creating ERRNO= and MESSAGE= structured logging fields. | |||
2014-11-28 | networkd: update logging macros for parameter order, and errno, to match ↵ | Lennart Poettering | |
rest of the code | |||
2014-11-28 | networkd: remove duplicate macro definitions | Lennart Poettering | |
2014-11-27 | sysv-generator: advertise the man page | Zbigniew Jędrzejewski-Szmek | |
2014-11-27 | fix build with --enable-terminal | Thomas Hindoe Paaboel Andersen | |
Broke with 086891e5c119abb9854237fc32e736fe2d67234c | |||
2014-11-27 | kmod-setup: simplify kernel command line parsing | Lennart Poettering | |
2014-11-27 | kdbus: set kernel attach mask before creating the first bus | Lennart Poettering | |
2014-11-27 | selinux: log selinux log messages with LOG_AUTH facility | Lennart Poettering | |