summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-14983-2681/+11
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* grypt-util: drop two emacs modelinesLennart Poettering2018-06-142-2/+0
| | | | No idea why they didn't get removed earlier...
* po: drop copyright lines referencing COPYRIGHT HOLDERLennart Poettering2018-06-1419-19/+0
| | | | | These lines are template lines that never got filled in. Let's drop them, as they carry zero information and are just useless.
* tree-wide: use proper unicode © instead of (C) where we canLennart Poettering2018-06-14153-207/+207
| | | | | | Let's use a proper unicode copyright symbol where we can, it's prettier. This important patch is very important.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141441-2884/+2
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* locale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* filesFranck Bui2018-06-141-1/+1
| | | | | | | | | | | | | | On overlayfs, FTW_MOUNT causes nftw to not list *any* files because the condition used by glibc to verify that it's on the same mountpoint doesn't work on overlayfs, see https://bugzilla.suse.com/show_bug.cgi?id=1096807 for the details. However using FTW_MOUNT doesn't seem to be really needed when walking through the keymap directorie tree. So until the glibc or the kernel is fixed (which might take some time), let's make localectl works with overlayfs. There's a small side effect here, by which regular (non-directory) files with bind mounts will be parsed while they were skipped by the previous logic.
* timedatectl: add 'show' command to display machine-readable outputYu Watanabe2018-06-143-11/+44
| | | | Closes #9249.
* Merge pull request #9193 from keszybz/coverityLennart Poettering2018-06-142-1/+9
|\ | | | | Coverity support for glibc-2.27
| * travis: add defines for _Float64/_Float64x/_Float32/_Float32xZbigniew Jędrzejewski-Szmek2018-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | $ build/test-sizeof ... _Float128 → 128 bits, signed _Float64 → 64 bits, signed _Float64x → 128 bits, signed _Float32 → 32 bits, signed _Float32x → 64 bits, signed ... This seems to be enough to make coverity work with glibc-2.27 found in Fedora 28+.
| * test-sizeof: also print float types from ISO/IEC TS 18661-3Zbigniew Jędrzejewski-Szmek2018-06-051-0/+8
| |
* | resolve: rename PrivateDNS to DNSOverTLSIwan Timmer2018-06-1431-137/+137
| | | | | | PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
* | Merge pull request #9263 from poettering/log-serializeZbigniew Jędrzejewski-Szmek2018-06-145-40/+168
|\ \ | | | | | | save/restore log level across daemon reexec
| * | main: simplify arg_system initialization a bitLennart Poettering2018-06-131-2/+3
| | | | | | | | | | | | | | | For both branches of the if check it's the first line, hence let's just do it before.
| * | pid1: preserve current value of log target across re-{load,execution}Franck Bui2018-06-135-18/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make debugging easier, this patches allows one to change the log target and do reload/reexec without modifying configuration permanently, which makes debugging easier. Indeed if one changed the log target at runtime (via the bus or via signals), the change was lost on the next reload/reexecution. In order to restore back the default value (set via system.conf, environment variables or any other means ), the empty string in the "LogTarget" property is now supported as well as sending SIGTRMIN+26 signal.
| * | pid1: preserve current value of log level across re-{load,execution}Franck Bui2018-06-135-20/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make debugging easier, this patches allows one to change the log level and do reload/reexec without modifying configuration permanently, which makes debugging easier. Indeed if one changed the log max level at runtime (via the bus or via signals), the change was lost on the next daemon reload/reexecution. In order to restore the original value back (set via system.conf, environment variables or any other means), the empty string in the "LogLevel" property is now supported as well as sending SIGRTMIN+23 signal.
* | | Merge pull request #9291 from poettering/nspawn-fixletsLennart Poettering2018-06-132-8/+9
|\ \ \ | | | | | | | | tiny nspawn fixlets
| * | | nspawn: free global variables before exitingLennart Poettering2018-06-131-2/+6
| | | | | | | | | | | | | | | | This doesn't really matter much, but is prettier for valgrind
| * | | nspawn: drop unused parameter from one callLennart Poettering2018-06-131-6/+3
| |/ /
* | | Merge pull request #9290 from poettering/radv-fixletsLennart Poettering2018-06-132-8/+11
|\ \ \ | | | | | | | | tiny sd-radv fixlets
| * | | sd-radv: use strv_isempty() where we canLennart Poettering2018-06-131-2/+1
| | | |
| * | | sd-radv: normalize function parameters a bitLennart Poettering2018-06-132-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's add "const" where we don't change structures passed. Also, we generally use "unsigned char" for IP prefix length values, do so here too. Previously different parts of the sd-radv.h API used different types for this.
| * | | sd-radv: close fd when destroying objectLennart Poettering2018-06-131-0/+4
| |/ /
* | | machine: ignore containers which disable private user namespace in ↵Yu Watanabe2018-06-131-0/+8
|/ / | | | | | | | | | | MapToMachine{User,Group} Fixes #9286.
* | networkd: Don't try to close fd in sd_radv_stop if fd is closed.Susant Sahani2018-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | sd_radv_stop is called from two places. if sd_radv_stop is alrady success then just don't try to close it . ``` systemd-networkd[604]: RADV: Stopping IPv6 Router Advertisement daemon systemd-networkd[604]: RADV: Unable to send last Router Advertisement with router lifetime set to zero: Bad file descriptor <==================HERE systemd-networkd[604]: RADV: Updated prefix 2a0a:*:*:fc::/64 preferred 1h valid 2h systemd-networkd[604]: RADV: Started IPv6 Router Advertisement daemon ``` Closes one of the issue #8960
* | Merge pull request #9261 from keszybz/drop-bool-castsLennart Poettering2018-06-1321-31/+70
|\ \ | | | | | | Drop bool casts
| * | test-alloc-util: add casts to bools from p ointersZbigniew Jędrzejewski-Szmek2018-06-131-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++03: "An rvalue of arithmetic, enumeration, pointer, or pointer to member type can be converted to an rvalue of type bool. A zero value, null pointer value, or null member pointer value is converted to false; any other value is converted to true" C should behave the same because pointers are scalars in C, but let's verify that.
| * | tree-wide: drop !! casts to booleansZbigniew Jędrzejewski-Szmek2018-06-1318-28/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are not needed, because anything that is non-zero is converted to true. C11: > 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the > value compares equal to 0; otherwise, the result is 1. https://stackoverflow.com/questions/31551888/casting-int-to-bool-in-c-c
| * | test-alloc-util: add a "test" for bool castsZbigniew Jędrzejewski-Szmek2018-06-131-0/+17
| | | | | | | | | | | | | | | | | | | | | Just in case ;) There is no good place, test-alloc-util.c is as good as any, and it's quite short so far, so let's add this there.
| * | cocinelle: use GNU parallel to run spatchZbigniew Jędrzejewski-Szmek2018-06-131-2/+8
| | | | | | | | | | | | | | | | | | spatch is single-threaded, i.e. slow. On my machine it allocates 5 GB of memory and starts swapping, which makes it even slower. Using parallel makes the whole thing pleasantly fast.
| * | basic/parse-util: remove unnecessary parenthesesZbigniew Jędrzejewski-Szmek2018-06-131-1/+1
| | |
* | | hwdb-update: make sure it works when run from mesonLennart Poettering2018-06-131-1/+3
| | | | | | | | | | | | | | | let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
* | | hwdb: update from upstreamLennart Poettering2018-06-1313-3454/+11288
| | |
* | | terminal-util: make file names in --cat-config output clickable linksLennart Poettering2018-06-131-1/+6
| | |
* | | binfmt,sysctl,sysuers,tmpfiles: add auto-paging for --cat-config commandsLennart Poettering2018-06-138-4/+61
| | | | | | | | | | | | | | | The output of these commands is really long, and already enriched with color. Let's add auto-paging to make this easier to digest.
* | | NEWS: add an example that actually appliesLennart Poettering2018-06-131-2/+2
| | |
* | | NEWS: the tool is called resolvconf, without the inner eLennart Poettering2018-06-131-2/+2
| | |
* | | NEWS: break lines with emacs once moreLennart Poettering2018-06-131-14/+15
| | | | | | | | | | | | Let's follow the line break rules our .dir-locals.el file defines
* | | NEWS: some .mailmap work to clean up contributors listLennart Poettering2018-06-132-23/+32
| | |
* | | Merge pull request #8863 from evelikov/shell-completion-fixesZbigniew Jędrzejewski-Szmek2018-06-132-48/+60
|\ \ \ | |/ / |/| | Shell completion fixes/perf improvements
| * | zsh-completion: systemctl: list template units only as neededEmil Velikov2018-06-111-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the completion adds template units for commands such as is-active, is-failed, is-enabled, status, show and others. At the same time systemctl barfs at us, since an instanced template unit is needed. Follow the example list from bash-completion as to which commands should not list template units. Note: The above is observed regardless of DefaultInstance. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * | shell-completion: systemctl: do not list template units in {re,}startEmil Velikov2018-06-112-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Template units lacking DefaultInstance cannot be enabled/disabled or started/restarted. By adding DefaultInstance the unit can be enabled/disabled but it still cannot be started/restarted. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * | shell-completion: systemctl: pass current word to all list_unit*Emil Velikov2018-06-112-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Earlier patch added the current word to the performance critical paths. Here we add it to every place, for consistency sake. Suggested-by: Yu Watanabe (yuwata) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * | zsh-completion: systemctl: tweak --state list for startable unitsEmil Velikov2018-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This effectively ports over b1bdb6496c07fc4fcf3f0feae69b5ef89ae557d9 from the bash completion to zsh. Modulo the new function, since it's unrelated perf. improvement. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * | zsh-completion: systemctl: pass only $PREFIX* to list-unit*Emil Velikov2018-06-111-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a leading * and $SUFFIX produces misleading results. Let's imagine that one mistypes nect instead of netc, they will get a rather misleading completion like: sys-fs-fuse-connections.mount Not to mention that the execution time is up by ~1/3. time systemctl list-unit-files netctl* -> ~12ms time systemctl list-unit-files *netctl* -> ~17ms Furthermore more units are matched, leading to greater execution time of `systemctl show' in _filter_units_by_property Use only $PREFIX*, removing the leading * and trailing $SUFFIX*. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * | bash-completion: systemctl: pass current partial unit to list-unit*Emil Velikov2018-06-111-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the partial name of the unit file to list-unit-files and list-units. This allows for faster completion, since systemctl does not need to list all the unit files. For reference: - time systemctl list-unit-files -> ~200ms - time systemctl list-unit-files netctl* -> ~15ms - time systemctl list-units -> ~5ms - time systemctl list-units netctl* -> ~5ms While the list-units time itself is unaffected, now a shorter list is produced. Thus as we pass it to `systemctl show' (via __filter_units_by_properties) the execution time will be decreased even further. v2: Update list-units hunk in commit message, add quotes around $2* v3: Remove funky indentation, quote all $cur instances Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * | bash-completion: systemctl: use systemctl --no-pagerEmil Velikov2018-06-111-1/+1
| | | | | | | | | | | | Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* | | Merge pull request #9172 from yuwata/timesync-ntp-parserZbigniew Jędrzejewski-Szmek2018-06-134-12/+35
|\ \ \ | | | | | | | | timesync: check validity of NTP server name or address
| * | | timesync: add more log messages in manager_network_read_link_servers()Yu Watanabe2018-06-131-3/+11
| | | |
| * | | timesync: check validity of NTP server name or addressYu Watanabe2018-06-133-3/+22
| | | |
| * | | conf-parser: simplify conf_parse_path()Yu Watanabe2018-06-131-6/+2
| | | | | | | | | | | | | | | | Follow-up for 97651797e83d0548aef9f808657d3518d89e5aee.