Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-03 | tests: move conf-parser related tests to test-conf-parser.c | Ronny Chevalier | |
2016-03-03 | tests: move fd-util related tests to test-fd-util.c | Ronny Chevalier | |
2016-03-03 | tests: move user-util related tests to test-user-util.c | Ronny Chevalier | |
2016-03-03 | tests: move path-util related tests to test-path-util.c | Ronny Chevalier | |
2016-03-03 | tests: move fileio related tests to test-fileio.c | Ronny Chevalier | |
2016-03-03 | tests: move stat-util related tests to test-stat-util.c | Ronny Chevalier | |
2016-03-03 | tests: move signal-util related tests to test-signal-util.c | Ronny Chevalier | |
2016-03-03 | tests: move cpu-set-util related tests to test-cpu-set-util.c | Ronny Chevalier | |
2016-03-03 | tests: move web-util related tests to test-web-util.c | Ronny Chevalier | |
2016-03-03 | tests: move alloc related tests to test-alloc-util.c | Ronny Chevalier | |
2016-03-03 | tests: move escape related tests to test-escape.c | Ronny Chevalier | |
2016-03-03 | tests: move strv related tests to test-strv.c | Ronny Chevalier | |
2016-03-03 | tests: move string related tests to test-string-util.c | Ronny Chevalier | |
2016-03-03 | tests: move hexdecoct tests to test-hexdecoct.c | Ronny Chevalier | |
2016-03-03 | systemctl: add missing OOM check | Ronny Chevalier | |
2016-03-03 | Merge pull request #2781 from keszybz/selinux-and-warnings | Lennart Poettering | |
Selinux loading fix and warning cleanups | |||
2016-03-02 | systemctl: rm empty dropin dirs after cancelled edit | Ronny Chevalier | |
Fixes #2734 | |||
2016-03-02 | Redefine 32bit time_t format to signed | Zbigniew Jędrzejewski-Szmek | |
It seems that it is signed both on i386 and arm. Avoids a stupid gcc warning on arm: src/udev/udevadm-monitor.c: In function ‘print_device’: src/udev/udevadm-monitor.c:44:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__time_t {aka long int}’ [-Wformat=] printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n", ^ | |||
2016-03-02 | test-sizeof: add a helper which prints variable sizes and signedness | Zbigniew Jędrzejewski-Szmek | |
This helps to understand misleading gcc warnings about type mismatches. | |||
2016-03-02 | test-selinux: add some simple tests which call functions and print the ↵ | Zbigniew Jędrzejewski-Szmek | |
results and timings | |||
2016-03-02 | selinux: use raw variants of security_compute_create and setfscreatecon | Zbigniew Jędrzejewski-Szmek | |
As suggested by Evgeny Vereshchagin as a follow up for https://github.com/systemd/systemd/pull/2781#issuecomment-191043402. | |||
2016-03-02 | Merge pull request #2779 from 0xAX/openat-opath-excess-flags | Daniel Mack | |
tree-wide: no need to pass excess flags to open()/openat() if O_PATH … | |||
2016-03-01 | selinux: always try to load the full selinux db | Zbigniew Jędrzejewski-Szmek | |
https://github.com/systemd/systemd/pull/2508#issuecomment-190901170 Maybe fixes https://bugzilla.redhat.com/show_bug.cgi?id=1308771. | |||
2016-03-02 | tree-wide: no need to pass excess flags to open()/openat() if O_PATH is passed | Alexander Kuleshov | |
As described in the documentation: When O_PATH is specified in flags, flag bits other than O_CLOEXEC, O_DIRECTORY, and O_NOFOLLOW are ignored. So, we can remove unnecessary flags in a case when O_PATH is passed to the open() or openat(). | |||
2016-03-01 | ask-password: add option --no-output to not print password to stdout | Christian Hesse | |
systemd-ask-password can store passwords in kernel keyring. However it uses to print the passwords to standard output nevertheless. Depending on where systemd-ask-password is called passwords may end on display or in log, leaking sensitive information. This allows to make systemd-ask-password quiet, effectively disabling printing passwords to standard output. | |||
2016-03-01 | Merge pull request #2773 from eliasp/type-warnings | Daniel Mack | |
Use `PRIu64` to print `uint64_t` in log msgs | |||
2016-02-29 | Merge pull request #2702 from poettering/resolved-iterate-fix | Zbigniew Jędrzejewski-Szmek | |
resolved iteration fix | |||
2016-02-29 | Merge pull request #2767 from benjarobin/fix-warn | Zbigniew Jędrzejewski-Szmek | |
systemctl: Fix warn: action_to_runlevel() is not used | |||
2016-02-29 | Use `PRIu64` to print `uint64_t` in log msgs | Elias Probst | |
2016-02-29 | Merge pull request #2771 from 0xAX/core-kernel-timestamp-cleanup | Lennart Poettering | |
core: use DUAL_TIMESTAMP_NULL to reset kernel_timestamp | |||
2016-02-29 | Merge pull request #2769 from martinpitt/adjtime | Lennart Poettering | |
Fixes for adjtime parsing | |||
2016-02-29 | test-clock: fix FILE* leak | Martin Pitt | |
Close the FILE* instead of the underlying fd. | |||
2016-02-29 | Merge pull request #2763 from tblume/shorten-hostname-before-removing-dots | Lennart Poettering | |
shorten hostname before checking for trailing dot | |||
2016-02-29 | Merge pull request #2756 from thom311/master | Lennart Poettering | |
core: avoid compiler warning when compiling with -fexceptions | |||
2016-02-29 | test-clock: fix assertions | Martin Pitt | |
Use assert_se() to ensure that they don't get optimized away. | |||
2016-02-29 | timedated: trivial stylistic fix | Martin Pitt | |
Don't use {} for single-line "then" blocks. | |||
2016-02-29 | systemctl: Fix warn: action_to_runlevel() is not used | Benjamin ROBIN | |
If HAVE_SYSV_COMPAT is not defined: ‘action_to_runlevel’ defined but not used | |||
2016-02-29 | test-clock: fix fd "leak" | Zbigniew Jędrzejewski-Szmek | |
CID #1352301. | |||
2016-02-29 | core: use DUAL_TIMESTAMP_NULL to reset kernel_timestamp | Alexander Kuleshov | |
instead of direct reset of kernel_timestamp fields. | |||
2016-02-29 | stdio-bridge: Correctly propagate error | Benjamin Robin | |
Return EXIT_FAILURE and print the correct errno code if sd_bus_get_fd() or sd_bus_get_events() fail | |||
2016-02-29 | shorten hostname before checking for trailing dot | Thomas Blume | |
Shortening can lead to a hostname that has a trailing dot. Therefore it should be done before checking from trailing dots. | |||
2016-02-28 | Merge pull request #2753 from phomes/trivial-fixes2 | Zbigniew Jędrzejewski-Szmek | |
Trivial fixes | |||
2016-02-28 | Merge pull request #2749 from martinpitt/adjtime | Zbigniew Jędrzejewski-Szmek | |
2016-02-27 | core: avoid compiler warning when compiling with -fexceptions | Thomas Haller | |
Initialize auto variables with cleanup attribute, otherwise we get a compiler warning with -fexceptions. ./configure CFLAGS='-Wmaybe-uninitialized -fexceptions -O2' | |||
2016-02-26 | stdio-bridge: remove dead code | Thomas Hindoe Paaboel Andersen | |
2016-02-26 | tree-wide: indentation fixes | Thomas Hindoe Paaboel Andersen | |
2016-02-26 | timedated: be more tolerant in parsing /etc/adjtime | Martin Pitt | |
Similarly to the previous commit, make context_write_data_local_rtc() understand /etc/adjtime files with just one or two lines, with or without a final newline. Normalize the file to the current definition in hwclock(8), in the spirit of "be liberal what you accept and strict what you produce": Add line terminators, and set the second line to "0" if missing. Fixes: #2638 | |||
2016-02-26 | clock-util: be more tolerant in parsing /etc/adjtime | Martin Pitt | |
As we default to "hardware clock is in UTC" if /etc/adjtime is not present, it also makes sense to have that default if /etc/adjtime contains only one or two lines. Drop the "gibberish" test case, as this was just EIO because of not containing three lines, which is already contained in other tests. clock_is_localtime() never actually validated the format of the first two lines, and there is little point in doing that. This addresses the reading half of issue #2638. | |||
2016-02-26 | clock-util: make clock_is_localtime() testable and add initial tests | Martin Pitt | |
Add path argument to clock_is_localtime() and default to "/etc/adjtime" if it's NULL. This makes the function testable. Add test-clock: initial test cases for some scenarios, using a temporary file. This also checks the behaviour with a NULL (i. e. the system's /etc/adjtime) file. | |||
2016-02-25 | Merge pull request #2671 from 0xAX/move-pager-open-to-one-place | Zbigniew Jędrzejewski-Szmek | |
tree-wide: merge pager_open_if_enabled() to the pager_open() |