Lennart Poettering
650f401123
Merge pull request #8336 from poettering/coccinelle-reallocarray
...
reallocarray() coccinellization
2018-03-02 15:40:52 +01:00
Lennart Poettering
774a928abf
Merge pull request #8333 from keszybz/hwdb-update
...
Hwdb update
2018-03-02 15:40:21 +01:00
Zbigniew Jędrzejewski-Szmek
a478fb9229
Merge pull request #8337 from poettering/resolve-fixes
...
various resolve-tool fixes
2018-03-02 13:33:54 +01:00
Lennart Poettering
f7a4bd9527
man: there's no point in referenceing systemd.unit(5) from itself ( #8338 )
2018-03-02 13:33:29 +01:00
Zbigniew Jędrzejewski-Szmek
3cca71c456
Merge pull request #8323 from xyproto/ok_color
...
Make the color of the status OK configurable at build-time
2018-03-02 13:00:07 +01:00
Michael Vogt
1825c909ff
sysusers: support u username -:300
style syntax ( #8325 )
...
This PR implements the first part of RFE #8046 . I.e. this allows to
write:
```
u username -:300
```
Where the uid is chosen automatically but the gid is fixed.
2018-03-02 12:56:44 +01:00
Zbigniew Jędrzejewski-Szmek
283def70cf
Merge pull request #8332 from poettering/logind-open-if-needed
...
logind device resume fix
2018-03-02 12:56:04 +01:00
Lennart Poettering
39f305a901
mount-setup: change bpf mount mode to 0700 ( #8334 )
...
After discussing with the kernel folks, we agreed to default to 0700 for
this. Better safe than sorry.
2018-03-02 12:55:24 +01:00
Zbigniew Jędrzejewski-Szmek
48449f41b4
Merge pull request #8303 from yuwata/fix-8276
...
test: use synthesize_nobody() in test-execute
2018-03-02 12:53:11 +01:00
Lennart Poettering
c54819ca80
systemctl: document telinit/init matching a bit ( #8339 )
...
See: #8305
2018-03-02 12:51:57 +01:00
Lennart Poettering
b351c300ee
resolved: debug log about resolv.conf lines we don't grok
2018-03-02 12:43:12 +01:00
Lennart Poettering
e40ec7de3a
man: extend synopsys to recently added commands
2018-03-02 12:43:12 +01:00
Lennart Poettering
9f0454a833
resolve-tool: propagate sensible errors from due to dns_name_is_valid() check failures
2018-03-02 12:43:12 +01:00
Lennart Poettering
27d8af3e39
resolve-tool: trivial coding style improvements
2018-03-02 12:43:12 +01:00
Lennart Poettering
8419d45776
coccinelle: similar to reallocarray() let's also systematically use malloc_multiply()
2018-03-02 12:39:07 +01:00
Lennart Poettering
62d74c78b5
coccinelle: add reallocarray() coccinelle script
...
Let's systematically make use of reallocarray() whereever we invoke
realloc() with a product of two values.
2018-03-02 12:39:07 +01:00
Lennart Poettering
3209c8e650
resolve-tool: use reallocarray() where appropriate
2018-03-02 12:39:07 +01:00
Zbigniew Jędrzejewski-Szmek
04b9d5f975
hwdb: update
...
usb.ids are not updated, because linux-usb.org is down.
It seems that the updates are corrections and new entries, to major
removal of existing entries.
2018-03-02 12:12:04 +01:00
futpib
ae934a7325
hwdb: add accelerometer mount matrix for Asus TP300LD ( #8327 )
2018-03-02 12:11:28 +01:00
Lennart Poettering
2589472712
Merge pull request #8237 from sourcejedi/timer_suspend
...
core: let OnCalendar= timer units expire during suspend (#8231 )
2018-03-02 12:11:06 +01:00
Zbigniew Jędrzejewski-Szmek
558ad9cbc8
hwdb: ignore whitespace in downloaded files
2018-03-02 12:09:52 +01:00
Zbigniew Jędrzejewski-Szmek
299597f8d5
tools/hwdb-update: allow downloads to fail
...
sf.net is down, and linux-usb.org which is hosted there also fails.
That's not nice, but there's not we can do about it now.
2018-03-02 12:06:32 +01:00
Lennart Poettering
340aff15f8
logind: fix typo in comment
2018-03-02 11:56:15 +01:00
Lennart Poettering
4d3900f1b7
logind: open device if needed
...
Fixes : #8291
2018-03-02 11:55:51 +01:00
Lennart Poettering
4804600b6a
logind: cast away return value we don't care about
2018-03-02 11:55:33 +01:00
Lennart Poettering
a3ddf73c0e
logind: voidify a function we never check the return value of
2018-03-02 11:55:16 +01:00
Zbigniew Jędrzejewski-Szmek
4af1aea411
tools/hwdb-update: print what is being executed
2018-03-02 11:50:43 +01:00
Zbigniew Jędrzejewski-Szmek
47920c4a26
Merge pull request #8316 from yuwata/fix-8315
...
sysusers: do not create duplicated groups when create users
2018-03-02 11:32:25 +01:00
Zbigniew Jędrzejewski-Szmek
3ab74d0a43
Merge pull request #8330 from filbranden/masked1
...
Detect masked unit with drop-ins
2018-03-02 11:24:31 +01:00
Zbigniew Jędrzejewski-Szmek
f7c5427c28
meson: use dashes in colour names
2018-03-02 09:09:29 +01:00
Alexander F Rødseth
96164a3936
Add build-time option to change the color of the "OK" status text
2018-03-02 09:00:44 +01:00
Alexander F Rødseth
6d1d8f66e0
Organize the ANSI codes and add missing colors
...
For consistency.
2018-03-02 08:58:02 +01:00
Yu Watanabe
69b0740785
test-execute: add tests with user/group daemon
...
The nobody user/group may not synthesized by systemd.
To run tests the functionalities in such situation, this adds tests
by user/group by daemon, as it is expected to exists all environments.
2018-03-02 16:42:53 +09:00
Filipe Brandenburger
67348e791d
test: masked unit with drop-ins
2018-03-01 21:14:13 -08:00
Filipe Brandenburger
9639b1752c
install: detect masked unit with drop-ins
...
Before this fix, a unit with drop-ins will not be reported as masked by
`systemctl is-enabled` or `systemctl list-unit-files`.
2018-03-01 21:11:35 -08:00
Yu Watanabe
d4f0412de4
sysusers: do not implicitly create group by 'm' if 'u' with the same name exists
...
The commit e2c2060f7b3b11fa3cca8899d80963b7a05cc4ab makes 'm' lines
disturb 'u' lines.
This fixes the disturbance.
2018-03-02 07:38:28 +09:00
Yu Watanabe
fb5dfbc2d8
test: add a test for sysusers
...
The test cases for sysusers did not cover the situation reported in
issue #8315 . Let's add one more test case.
2018-03-02 07:12:40 +09:00
Yu Watanabe
b5327d0a65
sysusers: do not create duplicated groups when create users
...
The commit e2c2060f7b3b11fa3cca8899d80963b7a05cc4ab introduces
the issue #8315 .
Fixes #8315 .
2018-03-02 07:12:38 +09:00
Zbigniew Jędrzejewski-Szmek
671f0f8de0
Remove /sbin from paths if split-bin is false ( #8324 )
...
Follow-up for 157baa87e4.
2018-03-01 21:48:36 +01:00
Lennart Poettering
7df4b832d0
Merge pull request #8319 from keszybz/yet-another-symlink-installation-tweak
...
meson: fix symlink creation when sbin is symlink to bin
2018-03-01 15:06:02 +01:00
Lennart Poettering
3896a17bdc
Merge pull request #8293 from dobyrch/master
...
tree-wide: fix inconsistencies in option parsing
2018-03-01 15:03:19 +01:00
Lennart Poettering
94c047203b
Merge pull request #8322 from keszybz/doc-tweak
...
man: document that link-ed files must be on /
2018-03-01 14:58:12 +01:00
Douglas Christman
6c1a6df375
udevadm: prevent segfault in blkid builtin when offset not specified
...
"--offset" takes an optional argument; if none is specified,
stroull() will attempt to parse a NULL pointer. For example:
$ udevadm test-builtin 'blkid --offset' /sys/dev/block/8:1
Update "--offset" to require an argument; also verify that the
offset is not negative.
2018-03-01 21:50:38 +08:00
Douglas Christman
3a6a6889e1
analyze: fix typo in error message
2018-03-01 21:50:38 +08:00
Douglas Christman
63547675a4
test-libudev: make "-m" equivalent to "--monitor"
...
"-m" is specified as a short form of "--monitor" in the option struct,
but not included in getopt_long's optstring. Update the optstring
to be consistent with the option struct.
2018-03-01 21:50:38 +08:00
Douglas Christman
68da321f66
systemctl: remove redundant option parsing code
...
"-f" used to be overloaded to mean both "--force" and "--follow";
aae9a96d removed "--follow", leaving behind some duplicate code.
2018-03-01 21:50:38 +08:00
Douglas Christman
2de6b06b27
journalctl: make journalctl -g work as documented
...
Add "g" to optstring so both "--grep" and "-g" work with journalctl
2018-03-01 21:50:38 +08:00
Zbigniew Jędrzejewski-Szmek
2f3828e5c6
man: document that link-ed files must be on /
...
Fixes #8307 .
2018-03-01 13:11:00 +01:00
Zbigniew Jędrzejewski-Szmek
157baa87e4
meson: support both separate and merged sbin-bin directories
...
Follow-up for ba7f4ae6178309dc937e10cf7dce0eca9dafb8de.
By default, we detect if the real root has a separate /usr/sbin directory, but
this can be overrides with -Dsplit-bin=true|false. The check assumes that
/usr/sbin is split if it is not a symlink, so it'll return a false negative
with some more complicated setups. But that's OK, in those cases this should be
configured explicitly.
This will copy the structure of the directories in the root file system to
$DESTDIR. If a directory is a directory in $DESTDIR but a symlink in the root
file system, this script will fail. This means that it's not possible to reuse
a $DESTDIR from between ba7f4ae61 and this patch.
2018-03-01 12:27:33 +01:00
Zbigniew Jędrzejewski-Szmek
2675413e39
meson: autodetect split-usr
...
Also move the status from "features" to the paths section. This is more of an
anti-feature.
2018-03-01 12:23:00 +01:00