summaryrefslogtreecommitdiffstats
path: root/test/shutdown.target (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-14Fix SPDX license tagsZbigniew Jędrzejewski-Szmek4-6/+4
2018-06-14Drop my copyright headersZbigniew Jędrzejewski-Szmek199-485/+4
perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
2018-06-14Also drop <authorgroup> from autogenerated pagesZbigniew Jędrzejewski-Szmek2-18/+0
2018-06-14man: drop unused <authorgroup> tags from man sourcesZbigniew Jędrzejewski-Szmek259-2361/+0
Docbook styles required those to be present, even though the templates that we use did not show those names anywhere. But something changed semi-recently (I would suspect docbook templates, but there was only a minor version bump in recent years, and the changelog does not suggest anything related), and builds now work without those entries. Let's drop this dead weight. Tested with F26-F29, debian unstable. $ perl -i -0pe 's/\s*<authorgroup>.*<.authorgroup>//gms' man/*xml
2018-06-14namespace: always use a root directory when setting up namespaceJan Synacek1-9/+7
1) mv /var/tmp /var/tmp.old 2) mkdir /tmp/varrr 3) ln -s /tmp/varrr /var/tmp Now, when a service has PrivateTmp=yes, during namespace setup, /tmp is first mounted over with a new mount. Then, when /var/tmp is being resolved, it points to /tmp/varrr, which by then doesn't exist, because it had already been obscured.
2018-06-14tree-wide: beautify remaining copyright statementsLennart Poettering552-590/+590
Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
2018-06-14tree-wide: remove Lennart's copyright linesLennart Poettering983-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.
2018-06-14grypt-util: drop two emacs modelinesLennart Poettering2-2/+0
No idea why they didn't get removed earlier...
2018-06-14po: drop copyright lines referencing COPYRIGHT HOLDERLennart Poettering19-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.
2018-06-14tree-wide: use proper unicode © instead of (C) where we canLennart Poettering153-207/+207
Let's use a proper unicode copyright symbol where we can, it's prettier. This important patch is very important.
2018-06-14tree-wide: drop 'This file is part of systemd' blurbLennart Poettering1441-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.
2018-06-14locale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* filesFranck Bui1-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.
2018-06-14timedatectl: add 'show' command to display machine-readable outputYu Watanabe3-11/+44
Closes #9249.
2018-06-14resolve: rename PrivateDNS to DNSOverTLSIwan Timmer31-137/+137
PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
2018-06-14timesync: ignore any errors related to timestamp fileYu Watanabe1-13/+21
2018-06-14sysusers: use fchmod_and_chown()Yu Watanabe1-12/+4
2018-06-14fs-util: introduce fchmod_and_chown()Yu Watanabe2-0/+17
The new function fchmod_and_chown() is almost same as chmod_and_chown() except it takes file descriptor instead of file path.
2018-06-13machine: ignore containers which disable private user namespace in ↵Yu Watanabe1-0/+8
MapToMachine{User,Group} Fixes #9286.
2018-06-13main: simplify arg_system initialization a bitLennart Poettering1-2/+3
For both branches of the if check it's the first line, hence let's just do it before.
2018-06-13pid1: preserve current value of log target across re-{load,execution}Franck Bui5-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.
2018-06-13pid1: preserve current value of log level across re-{load,execution}Franck Bui5-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.
2018-06-13nspawn: free global variables before exitingLennart Poettering1-2/+6
This doesn't really matter much, but is prettier for valgrind
2018-06-13sd-radv: use strv_isempty() where we canLennart Poettering1-2/+1
2018-06-13sd-radv: normalize function parameters a bitLennart Poettering2-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.
2018-06-13sd-radv: close fd when destroying objectLennart Poettering1-0/+4
2018-06-13nspawn: drop unused parameter from one callLennart Poettering1-6/+3
2018-06-13networkd: Don't try to close fd in sd_radv_stop if fd is closed.Susant Sahani1-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
2018-06-13hwdb-update: make sure it works when run from mesonLennart Poettering1-1/+3
let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
2018-06-13hwdb: update from upstreamLennart Poettering13-3454/+11288
2018-06-13terminal-util: make file names in --cat-config output clickable linksLennart Poettering1-1/+6
2018-06-13binfmt,sysctl,sysuers,tmpfiles: add auto-paging for --cat-config commandsLennart Poettering8-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.
2018-06-13NEWS: add an example that actually appliesLennart Poettering1-2/+2
2018-06-13NEWS: the tool is called resolvconf, without the inner eLennart Poettering1-2/+2
2018-06-13NEWS: break lines with emacs once moreLennart Poettering1-14/+15
Let's follow the line break rules our .dir-locals.el file defines
2018-06-13NEWS: some .mailmap work to clean up contributors listLennart Poettering2-23/+32
2018-06-13test-alloc-util: add casts to bools from p ointersZbigniew Jędrzejewski-Szmek1-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.
2018-06-13tree-wide: drop !! casts to booleansZbigniew Jędrzejewski-Szmek18-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
2018-06-13test-alloc-util: add a "test" for bool castsZbigniew Jędrzejewski-Szmek1-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.
2018-06-13cocinelle: use GNU parallel to run spatchZbigniew Jędrzejewski-Szmek1-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.
2018-06-13basic/parse-util: remove unnecessary parenthesesZbigniew Jędrzejewski-Szmek1-1/+1
2018-06-13NEWS: add more newsYu Watanabe1-1/+10
2018-06-13NEWS: announce DNS-over-TLS tooLennart Poettering1-0/+6
2018-06-13man: drop unnecessary '=' after ntaYu Watanabe1-1/+1
2018-06-13resolvectl: fix indentationYu Watanabe1-1/+1
2018-06-13timesync: add more log messages in manager_network_read_link_servers()Yu Watanabe1-3/+11
2018-06-13timesync: check validity of NTP server name or addressYu Watanabe3-3/+22
2018-06-13conf-parser: simplify conf_parse_path()Yu Watanabe1-6/+2
Follow-up for 97651797e83d0548aef9f808657d3518d89e5aee.
2018-06-13resolve: do not complete stream transaction when it is under retryingYu Watanabe1-0/+2
2018-06-13resolve: drop unused argument of dns_server_packet_lost()Yu Watanabe3-5/+5
2018-06-13resolve: correctly count TCP transaction failuresYu Watanabe1-1/+1
Fixes #9281.