summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-09coccinelle: additional errno.cocci hunkMichal Schmidt
rewrites: log_error_errno(errno, ...); return -errno; into: return log_error_errno(errno, ...);
2015-11-09coccinelle: errno.cocci improvementsMichal Schmidt
Apply to all log_*_errno loglevels.
2015-11-05sd-resolve: simplify pthread_join() callMichal Schmidt
POSIX says: The pthread_join() function shall not return an error code of [EINTR].
2015-11-05timesync: return negative errno from manager_adjust_clock() on errorMichal Schmidt
2015-11-05nspawn: save errno before reopening log after exec failureMichal Schmidt
2015-11-05nspawn: no fake errnoMichal Schmidt
The S_ISREG test does not set errno, so don't use it in the error message.
2015-11-05nspawn: simplify error returnsMichal Schmidt
Use the "return log_error_errno(...)" idiom to have fewer curly braces. The last hunk also fixes the return value of setup_journal(), but the fix has no practical effect.
2015-11-05libsystemd-network: inet_pton does not set errno on parsing errorMichal Schmidt
it would set errno only for an invalid address family. Also fix a copy&paste error in one error string.
2015-11-05import: report error before losing errnoMichal Schmidt
unlink() may change errno, so report the error from rename() first, then unlink.
2015-11-05firstboot: fix errno signMichal Schmidt
2015-11-05journal: posix_fallocate() does not set errnoMichal Schmidt
manpage says: posix_fallocate() returns zero on success, or an error number on failure. Note that errno is not set.
2015-11-05treewide: use the negative error codes returned by our functionsMichal Schmidt
Our functions return negative error codes. Do not rely on errno being set after calling our own functions.
2015-11-05journal: fix incorrect errno reportingMichal Schmidt
pread() returns -1 on error and sets errno. Do not use the -1 as errno.
2015-11-05journal: use int64_t instead of long for catalog file sizeMichal Schmidt
This replaces the use of ftell() with ftello() for 64-bit size on all archs. Also drops a pointless check for NULL before calling strbuf_cleanup().
2015-11-05journal: drop unnecessary write_catalog() parameterMichal Schmidt
write_catalog() use the hashmap only to get its size. The size is already given in parameter 'n'.
2015-11-05log: whitespace style fixMichal Schmidt
2015-11-05tty-ask-password-agent: fix typo in error messageMichal Schmidt
2015-11-04Merge pull request #1761 from ssahani/wordLennart Poettering
core: parse socket port to extract_first_word
2015-11-04Merge pull request #1778 from rhdrjones/detect-virtLennart Poettering
detect-virt: one fix and arm/aarch64 dmi detection
2015-11-04Merge pull request #1780 from evverx/fix-install-dbusRonny Chevalier
test-functions: fix dbus-1 installation
2015-11-04test-functions: fix dbus-1 installationEvgeny Vereshchagin
The basic setup for the well-known system and session buses is now done in read-only files in ${datadir} (normally /usr/share). See the NEWS entry for 1.9.18 for details. http://cgit.freedesktop.org/dbus/dbus/tree/NEWS
2015-11-04detect-virt: dmi: look for KVMAndrew Jones
Some guests (ARM, AArch64, x86-RHEL) have 'KVM' in the product name. Look for that first in order to more precisely report "kvm" when detecting a QEMU/KVM guest. Without this patch we report "qemu", even if KVM acceleration is in use on ARM/AArch64 guests. I've only tested a backported version of this and the previous patch on an AArch64 guest (which worked). Of course it would be nice to get regression testing on all guest types that depend on dmi done.
2015-11-04arm/aarch64: detect-virt: check dmiAndrew Jones
ARM/AArch64 guests now have SMBIOS tables populated (when boot with a late enough QEMU and a late enough AAVMF is used as the bootloader). Furthermore, when booting ARM/AArch64 guests with ACPI, the DT detection obviously no longer works, so we need dmi detection.
2015-11-04detect-virt: detect in best-heuristic orderAndrew Jones
afaict, this will fix a regression caused by commit 75f86906c5. Where we used to report "kvm" before that patch, without this patch, we would only report "qemu". The reason is because cpuid detection must come before dmi detection. Also, both can safely come before other xen heuristics. Untested.
2015-11-04Merge pull request #1775 from fbuihuu/set-property-completionLennart Poettering
bash-completion: add minimal support fpr 'set-property' command
2015-11-04Merge pull request #1776 from marktheunissen/masterLennart Poettering
systemctl: update documentation for --plain option
2015-11-04Merge pull request #1777 from torstehu/fix-typo2Daniel Mack
core: fix typo
2015-11-04core: fix typoTorstein Husebø
2015-11-04Merge pull request #1773 from evverx/dont-hide-enomemDaniel Mack
core: small fixes to parse_namespace
2015-11-04systemctl: update documentation for --plain optionMark Theunissen
- Existing documentation did not mention that --plain omits the bullets and works on list-units and list-machines.
2015-11-04Merge pull request #1768 from vcaputo/sd-daemon-listen-fds-overflow-bisLennart Poettering
sd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds()
2015-11-04bash-completion: add minimal support fpr 'set-property' commandFranck Bui
'set-property' was missing from the list of known command. Also a list of unit names will be proposed as next argument. However no support on property names is provided since it would require a hard coded list of them.
2015-11-04core: small fixes to parse_namespaceEvgeny Vereshchagin
* don't hide ENOMEM * log r instead of 0
2015-11-03sd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds()Vito Caputo
2015-11-03core: parse socket port to extract_first_wordSusant Sahani
2015-11-03Merge pull request #1767 from poettering/journald-watchdogDaniel Mack
restore journald watchdog
2015-11-03journal: restore watchdog supportLennart Poettering
2015-11-03sd-daemon: explicitly filter out -1 when parsing watchdog timeoutLennart Poettering
We already filter out 0, and as -1 is usually special (meaning infinity, as in USEC_INFINITY) we should better not accept it either. Better safe than sorry...
2015-11-03util-lib: move CONF_DIRS_NULSTR definition to def.hLennart Poettering
After all, this is not some compiler or C magic, but something very specific to how systemd works, hence let's move it into def.h, and out of macro.h
2015-11-03util-lib: move character class definitions to string-util.hLennart Poettering
2015-11-03Merge pull request #1764 from ssahani/jiffies-1Lennart Poettering
(V2) networkd: bridge convert to jiffies
2015-11-03networkd: bridge prop convert to jiffiesSusant Sahani
2015-11-03Time-util: introduce usec to jiffiesSusant Sahani
2015-11-03Merge pull request #1765 from teg/pppoe-removalDaniel Mack
sd-pppoe: drop
2015-11-03sd-pppoe: dropTom Gundersen
It is really unclear if we want to / have the resources to support this fully, so drop it for now. It can easily be brought back if a killer usecase emerges. Note that this code was never hooked up, so this does not remove any features.
2015-11-03Merge pull request #1726 from teg/networkd-2Daniel Mack
networkd: (de)serialize more state and support expiring routes
2015-11-03Merge pull request #1763 from endocode/kayrus/fix_man_chattrDaniel Mack
Fixed link to chattr man page
2015-11-03Fixed link to chattr man pagekayrus
2015-11-03build-sys: temporarily lower libmount version checkMartin Pitt
util-linux 2.27.1's configure.ac still claims to be 2.27.0, which breaks our version check. Lower it back to 2.27.0 until util-linux gets a fixed tarball. See #1754
2015-11-03Merge pull request #1744 from evverx/fix-debug-generatorLennart Poettering
debug-generator: respect kernel parameters for default unit setting