chiark / gitweb /
elogind.git
6 years agouse strneq instead of strncmp
Thomas Hindoe Paaboel Andersen [Tue, 12 Feb 2013 20:47:36 +0000 (21:47 +0100)]
use strneq instead of strncmp

6 years agoMerge branch 'master' of ssh://git.freedesktop.org/git/systemd/systemd into work
Auke Kok [Tue, 12 Feb 2013 23:28:00 +0000 (15:28 -0800)]
Merge branch 'master' of ssh://git.freedesktop.org/git/systemd/systemd into work

6 years agoefi: add missing #include
Lennart Poettering [Tue, 12 Feb 2013 23:18:29 +0000 (00:18 +0100)]
efi: add missing #include

6 years agomanager: pass environment over daemon-reexec
Oleksii Shevchuk [Mon, 11 Feb 2013 23:14:39 +0000 (01:14 +0200)]
manager: pass environment over daemon-reexec

Fixes this bug:
alxchk > systemctl --user set-environment A=B
alxchk > systemctl --user show-environment | grep ^A=
A=B
alxchk > systemctl --user daemon-reexec
alxchk > systemctl --user show-environment | grep ^A=
alxchk >

6 years agosystemd-bootchart: relicense to LGPLv2.1+
Auke Kok [Tue, 12 Feb 2013 23:14:15 +0000 (15:14 -0800)]
systemd-bootchart: relicense to LGPLv2.1+

When we merged systemd-bootchart we omitted relicensing this
to LGPL. Now that code is being used for other purposes we
need to make sure the code is shareable within systemd
without further problems.

The original committers and contributors of bootchart before it
was merged all have agreed with the relicensing.

6 years agoupdate TODO
Lennart Poettering [Tue, 12 Feb 2013 23:12:40 +0000 (00:12 +0100)]
update TODO

6 years agoefi: various cleanups
Lennart Poettering [Tue, 12 Feb 2013 23:07:55 +0000 (00:07 +0100)]
efi: various cleanups

6 years agomissing: define MS_REC and MS_SHARED if not defined already
Aleksander Morgado [Tue, 12 Feb 2013 13:26:17 +0000 (14:26 +0100)]
missing: define MS_REC and MS_SHARED if not defined already

6 years agoudev: use unique names for temporary files created in /dev
Kay Sievers [Tue, 12 Feb 2013 15:03:45 +0000 (16:03 +0100)]
udev: use unique names for temporary files created in /dev

On Tue, Feb 12, 2013 at 2:18 PM, Robert Milasan <rmilasan@suse.com> wrote:
> Under some circumstances udev mixed with multipath fails:
>
> udevd-work[1376]:
> symlink(../../sdk, /dev/disk/by-id/scsi-36005076305ffc0670000000000002842.udev-tmp)
> failed: File exists udevd-work[1432]:
> rename(/dev/disk/by-id/scsi-36005076305ffc0850000000000000a88.udev-tmp, /dev/disk/by-id/scsi-36005076305ffc0850000000000000a88)
> failed: No such file or directory
>
> This is non-fatal, but there is no point of created the symlink or
> renaming the symlink if it already exists.
>
> Reference: https://bugzilla.novell.com/show_bug.cgi?id=791503

It looke like this now:
  stat("/dev/disk/by-id", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
  symlink("../../sda", "/dev/disk/by-id/ata-INTEL...N.tmp-b8:0") = 0
  rename("/dev/disk/by-id/ata-INTEL...N.tmp-b8:0", "/dev/disk/by-id/ata-INTEL...N") = 0

6 years agocdrom_id: add data track count for bad virtual drive implementations
Harald Hoyer [Tue, 12 Feb 2013 14:19:38 +0000 (15:19 +0100)]
cdrom_id: add data track count for bad virtual drive implementations

/# /lib/udev/cdrom_id --debug /dev/sr0
probing: '/dev/sr0'
INQUIRY: [AMI     ][Virtual CDROM   ][1.00]
GET CONFIGURATION failed with SK=5h/ASC=20h/ACQ=00h
drive is pre-MMC2 and does not support 46h get configuration command
trying to work around the problem
READ DISC INFORMATION failed with SK=5h/ASC=20h/ACQ=00h
no current profile, but disc is present; assuming CD-ROM
READ TOC: len: 12, start track: 1, end track: 1
last track 1 starts at block 0
READ DISC INFORMATION failed with SK=5h/ASC=20h/ACQ=00h
ID_CDROM=1
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD=1

What is missing here is ID_CDROM_MEDIA_TRACK_COUNT_DATA to trigger
blkid in /lib/udev/rules.d/60-persistent-storage.rules

KERNEL=="sr*", ENV{DISK_EJECT_REQUEST}!="?*",
ENV{ID_CDROM_MEDIA_TRACK_COUNT_DATA}=="?*",
ENV{ID_CDROM_MEDIA_SESSION_LAST_OFFSET}=="", \
  IMPORT{builtin}="blkid --noraid"

6 years agolocalectl: fix --help text
Lennart Poettering [Mon, 11 Feb 2013 23:34:39 +0000 (00:34 +0100)]
localectl: fix --help text

https://bugs.freedesktop.org/show_bug.cgi?id=60595

6 years agojournalctl: allow both "-n 55" and "-n55" on the command line, as equivalent syntaxes
Lennart Poettering [Mon, 11 Feb 2013 23:31:13 +0000 (00:31 +0100)]
journalctl: allow both "-n 55" and "-n55" on the command line, as equivalent syntaxes

https://bugs.freedesktop.org/show_bug.cgi?id=60596

6 years agomanager: clean environment before passing it on to others
Lennart Poettering [Mon, 11 Feb 2013 22:53:14 +0000 (23:53 +0100)]
manager: clean environment before passing it on to others

6 years agobinfmt,tmpfiles,modules-load,sysctl: rework the various early-boot services that...
Lennart Poettering [Mon, 11 Feb 2013 22:48:36 +0000 (23:48 +0100)]
binfmt,tmpfiles,modules-load,sysctl: rework the various early-boot services that work on .d/ directories

This unifies much of the logic behind them:

- All four will now ofllow the rule that the earlier file and earlier
  assignment in the .d/ directories wins. Before, sysctl was the only
  outlier, where the later setting always won.

- All four now support getopt() and --help on the command line.

- All four can now handle specification of configuration file names on
  the command line to apply. The tools will automatically find them, and
  apply them. Previously only tmpfiles could do that. This is useful for
  %post scripts in RPMs and suchlike.

- This fixes various error path issues in conf_files_list()

6 years agocore: properly validate environment data from Environment= lines in unit files
Lennart Poettering [Mon, 11 Feb 2013 22:45:59 +0000 (23:45 +0100)]
core: properly validate environment data from Environment= lines in unit files

6 years agomanager: validate environment parameters for SetEnvironment(), UnsetEnvironment(...
Lennart Poettering [Mon, 11 Feb 2013 22:41:15 +0000 (23:41 +0100)]
manager: validate environment parameters for SetEnvironment(), UnsetEnvironment() bus calls

6 years agobootctl: print partition uuids as /dev/disk/by-partuuid/...
Kay Sievers [Mon, 11 Feb 2013 22:19:31 +0000 (23:19 +0100)]
bootctl: print partition uuids as /dev/disk/by-partuuid/...

6 years agocore: don't accept invalid environment assignments from the kernel cmdline
Lennart Poettering [Mon, 11 Feb 2013 04:51:14 +0000 (05:51 +0100)]
core: don't accept invalid environment assignments from the kernel cmdline

6 years agotests: more tests
Thomas Hindoe Paaboel Andersen [Mon, 11 Feb 2013 20:40:59 +0000 (21:40 +0100)]
tests: more tests

tests for:
 parse_boolean
 env_name_is_valid

Also convert assert to assert_se to make sure they are run even with
optimization. (see commit 9b5d6bd909855543cba75a4469bff6f82845cf0d)

6 years agologind: Allow active sessions to always shutdown by default
Adel Gadllah [Wed, 6 Feb 2013 13:24:56 +0000 (14:24 +0100)]
logind: Allow active sessions to always shutdown by default

Currently local user are being asked for an admin  password when another
user is logged into the system. This does not make sense as the user has
the power to shut down the system anyway regardless if he/she knows the
password or not (by pulling the plug, battery or whatever).

So only require the admin authentification for remote sessions.

https://bugzilla.gnome.org/show_bug.cgi?id=693385

6 years agobootctl: add boot loader and firmware interface tool
Kay Sievers [Fri, 8 Feb 2013 16:24:43 +0000 (17:24 +0100)]
bootctl: add boot loader and firmware interface tool

6 years agobuild-sys: add -U_FORTIFY_SOURCE to $PYTHON_CFLAGS when necessary
Zbigniew Jędrzejewski-Szmek [Mon, 11 Feb 2013 06:08:30 +0000 (01:08 -0500)]
build-sys: add -U_FORTIFY_SOURCE to $PYTHON_CFLAGS when necessary

This patch only adds one line, but moves python detection
after cflags detection, so the result of the latter can
be used in the former.

$PYTHON_CFLAGS usually includes -D_FORTIFY_SOURCE, which will generate
a warning when compiling without optimization. Avoid by undefining
_FORTIFY_SOURCE.

6 years agoefi: fix returned length of efi_get_variable()
Lennart Poettering [Mon, 11 Feb 2013 05:20:55 +0000 (06:20 +0100)]
efi: fix returned length of efi_get_variable()

6 years agoutil: rework load_env_file()
Lennart Poettering [Mon, 11 Feb 2013 04:36:54 +0000 (05:36 +0100)]
util: rework load_env_file()

Inner library calls should not invoke log_oom(), that's something for
main programs, not library calls.

Don't read through uninitialized memory if a file ends in a continuation
line.

Add comments for the non-obvious bits.

Don't choke on comment lines that are continuation lines.

Simplify some things.

6 years agopath-util: fix memory leak
Lennart Poettering [Mon, 11 Feb 2013 04:10:23 +0000 (05:10 +0100)]
path-util: fix memory leak

6 years agoutil: introduce FOREACH_LINE for iterating through files
Lennart Poettering [Mon, 11 Feb 2013 04:09:29 +0000 (05:09 +0100)]
util: introduce FOREACH_LINE for iterating through files

6 years agotest-env-replace: better user assert_se() everywhere
Lennart Poettering [Mon, 11 Feb 2013 02:52:32 +0000 (03:52 +0100)]
test-env-replace: better user assert_se() everywhere

For test tools it's better to use assert_se() rather than assert(),
since the former is not optimized away, even if -DNDEBUG is used. That
means the test program now retains its usefulness even if -DNDEBUG is
used.

This also adds in some OOM checks, to be extra anal...

6 years agoenv: considerably beef up environment cleaning logic
Lennart Poettering [Mon, 11 Feb 2013 02:46:08 +0000 (03:46 +0100)]
env: considerably beef up environment cleaning logic

Now, actually check if the environment variable names and values used
are valid, before accepting them. With this in place are at some places
more rigid than POSIX, and less rigid at others. For example, this code
allows lower-case environment variables (which POSIX suggests not to
use), but it will not allow non-UTF8 variable values.

All in all this should be a good middle ground of what to allow and what
not to allow as environment variables.

(This also splits out all environment related calls into env-util.[ch])

6 years agotests: add tests of strxcpyx
Thomas Hindoe Paaboel Andersen [Sun, 10 Feb 2013 20:56:03 +0000 (21:56 +0100)]
tests: add tests of strxcpyx

also fix a bad indentation in test-strbug.c

6 years agoman: typo fix in systemd.socket
Michael Biebl [Sat, 9 Feb 2013 13:09:05 +0000 (14:09 +0100)]
man: typo fix in systemd.socket

6 years agoupdate TODO
Lennart Poettering [Sat, 9 Feb 2013 01:47:42 +0000 (02:47 +0100)]
update TODO

6 years agovconsole-setup: don't set the kbd mode to unicode if is is currently in raw/off mode
Lennart Poettering [Sat, 9 Feb 2013 01:40:57 +0000 (02:40 +0100)]
vconsole-setup: don't set the kbd mode to unicode if is is currently in raw/off mode

Let's not confuse X11

6 years agoshutdown: issue a sync() as soon as shutdown.target is queued
Lennart Poettering [Fri, 25 Jan 2013 21:33:33 +0000 (22:33 +0100)]
shutdown: issue a sync() as soon as shutdown.target is queued

6 years agotests: add test of strbuf
Thomas Hindoe Paaboel Andersen [Sat, 9 Feb 2013 00:39:44 +0000 (01:39 +0100)]
tests: add test of strbuf

6 years agologind: rename "seat-master" tag to "master-of-seat"
Lennart Poettering [Sat, 9 Feb 2013 00:25:55 +0000 (01:25 +0100)]
logind: rename "seat-master" tag to "master-of-seat"

We currently enforce that seats are to be named in the form of
"seatXXX", i.e. need to begin with the 4 characters "seat". Thus,
"seat-master" would qualify as a seat name. As seat names are frequently
used as tags on devices, the "seat-master" tag might hence confuse
logind if the user decides to name a seat "seat-master".

Hence, avoid any ambuigity: let's rename the "seat-master" tag to
"master-of-seat".

6 years agoupdate TODO
Lennart Poettering [Sat, 9 Feb 2013 00:17:36 +0000 (01:17 +0100)]
update TODO

6 years agoman: fix prototype of sd_get_uids()
Lennart Poettering [Fri, 8 Feb 2013 22:31:13 +0000 (23:31 +0100)]
man: fix prototype of sd_get_uids()

6 years agoupdate TODO
Lennart Poettering [Fri, 8 Feb 2013 22:25:55 +0000 (23:25 +0100)]
update TODO

6 years agobuild-sys: link libudev against the internal sd-daemon lib, not the source file
Kay Sievers [Fri, 8 Feb 2013 12:25:26 +0000 (13:25 +0100)]
build-sys: link libudev against the internal sd-daemon lib, not the source file

6 years agoudev: udevadm hwdb - add --root=
Kay Sievers [Fri, 8 Feb 2013 11:00:05 +0000 (12:00 +0100)]
udev: udevadm hwdb - add --root=

https://bugs.freedesktop.org/show_bug.cgi?id=60398

6 years agoshared: conf-files - use root parameter and convert to auto-cleanup
Kay Sievers [Fri, 8 Feb 2013 09:45:30 +0000 (10:45 +0100)]
shared: conf-files - use root parameter and convert to auto-cleanup

6 years agoshared: conf-files - add root parameter
Kay Sievers [Fri, 8 Feb 2013 09:22:02 +0000 (10:22 +0100)]
shared: conf-files - add root parameter

6 years agosystemd: fix uninitialized memory access in selinux
Zbigniew Jędrzejewski-Szmek [Fri, 8 Feb 2013 01:58:02 +0000 (20:58 -0500)]
systemd: fix uninitialized memory access in selinux

==6129== Syscall param socketcall.getsockopt(optlen) points to uninitialised byte(s)
==6129== at 0x312D0F325A: getsockopt (syscall-template.S:81)
==6129== by 0x4615E6: get_audit_data (selinux-access.c:268)
==6129== by 0x461A81: selinux_access_check (selinux-access.c:394)
==6129== by 0x453B23: bus_manager_message_handler (dbus-manager.c:1395)
==6129== by 0x313581D9C4: _dbus_object_tree_dispatch_and_unlock (dbus-object-tree.c:862)
==6129== by 0x313580FC1F: dbus_connection_dispatch (dbus-connection.c:4672)
==6129== by 0x44CD4C: bus_dispatch (dbus.c:528)
==6129== by 0x41292F: manager_loop (manager.c:1573)
==6129== by 0x40CD8E: main (main.c:1735)
==6129== Address 0x7fefff2c0 is on thread 1's stack

6 years agotests: add more tests
Thomas Hindoe Paaboel Andersen [Thu, 7 Feb 2013 23:22:26 +0000 (00:22 +0100)]
tests: add more tests

Adds tests of:
 strv_env_delete
 strv_env_unset
 strv_env_set

6 years agobuild-sys: fix build without -Wl,--gc-sections
Zbigniew Jędrzejewski-Szmek [Thu, 7 Feb 2013 21:22:29 +0000 (16:22 -0500)]
build-sys: fix build without -Wl,--gc-sections

In 8d81eb8e the new library was added for libudev, use it for
libsystemd-journal too.

6 years agoudev: remove HWDB_BIN
Kay Sievers [Thu, 7 Feb 2013 20:53:10 +0000 (21:53 +0100)]
udev: remove HWDB_BIN

6 years agotest-env-replace: assert results instead of printing them
Thomas Hindoe Paaboel Andersen [Thu, 7 Feb 2013 20:10:31 +0000 (21:10 +0100)]
test-env-replace: assert results instead of printing them

Also code cleanup and split into functions in preparation for more tests
to come.

6 years agobuild-sys: at least for now, never link libudev against systemd's shared libraries
Kay Sievers [Thu, 7 Feb 2013 12:47:46 +0000 (13:47 +0100)]
build-sys: at least for now, never link libudev against systemd's shared libraries

6 years agobuild-sys: add libsystemd-id128 as libudev dependency
David Strauss [Thu, 7 Feb 2013 06:23:59 +0000 (01:23 -0500)]
build-sys: add libsystemd-id128 as libudev dependency

After d848b9cbfa0 'Move generic specifier functions to shared' libudev
depends (through) libsystemd-shared.la on libsystemd-id128.so.  The
problem only appears when the linker does not support --gc-sections
and manifests itself as the inability to resolve sd_id128_get_machine
and other libsystemd-id128 functions, which aren't really used.

6 years agobuild-sys: restore man/index.html as link to systemd.index.html
Zbigniew Jędrzejewski-Szmek [Thu, 7 Feb 2013 06:10:21 +0000 (01:10 -0500)]
build-sys: restore man/index.html as link to systemd.index.html

It got lost in the transformation to XML generation.

6 years agoman: fix return value for sd_journal_flush_matches
Zbigniew Jędrzejewski-Szmek [Thu, 7 Feb 2013 05:53:11 +0000 (00:53 -0500)]
man: fix return value for sd_journal_flush_matches

https://bugs.freedesktop.org/show_bug.cgi?id=60133

6 years agoman: document COREDUMP_UNIT and COREDUMP_USER_UNIT
Zbigniew Jędrzejewski-Szmek [Thu, 7 Feb 2013 05:50:37 +0000 (00:50 -0500)]
man: document COREDUMP_UNIT and COREDUMP_USER_UNIT

Also fix formatting for kernel related fields, enabling them
to show up in the directives index.

6 years agocoredump: make use of the cleanup macros
Mirco Tischler [Tue, 5 Feb 2013 00:43:10 +0000 (01:43 +0100)]
coredump: make use of the cleanup macros

6 years agologs-show: show messages for all unit types in systemctl status
Mirco Tischler [Mon, 4 Feb 2013 14:13:24 +0000 (15:13 +0100)]
logs-show: show messages for all unit types in systemctl status

I can't find a reason why we shouldn't try to output messages for other
unit types than .service, .socket, .mount and .swap as well. It's probably
a leftover from before we started logging UNIT= from inside PID 1.

6 years agojournal: log user units for coredumps and show them in systemctl status
Mirco Tischler [Mon, 4 Feb 2013 14:13:23 +0000 (15:13 +0100)]
journal: log user units for coredumps and show them in systemctl status

6 years agonss-myhostname: copy first result to preallocated buffer
Eelco Dolstra [Mon, 4 Feb 2013 14:56:26 +0000 (15:56 +0100)]
nss-myhostname: copy first result to preallocated buffer

Fixes a segfault in nscd when using nss-myhostname.

Nscd expects that an NSS module's gethostbyname4_r function returns
its first result in the pre-allocated gaih_addrtuple denoted by **pat.
(See nscd/aicache.c in the Glibc sources.)  However, nss-myhostname
doesn't fill in **pat but allocates the first result in ‘buffer’, then
sets *pat.  So nscd crashes (e.g. when running ‘getent ahosts
my-machine’).

Hard to tell if this is a bug in nscd, since there doesn't seem to be
a proper API spec for gethostbyname4_r.  But in any case, this patch
fixes the crash by copying the first result to **pat.

6 years agoman: describe unit load path in systemd.unit(5)
Zbigniew Jędrzejewski-Szmek [Mon, 4 Feb 2013 03:23:53 +0000 (22:23 -0500)]
man: describe unit load path in systemd.unit(5)

In other cases where multiple directories are searched for unit files,
the list of directories is described in the man page describing the
format. I think this makes sense too in case of systemd directories,
since the systemd(1) manpage already has an overview of many different
topics.

6 years agobuild-sys: substitute strings in systemd.unit(5)
Zbigniew Jędrzejewski-Szmek [Tue, 5 Feb 2013 15:31:20 +0000 (10:31 -0500)]
build-sys: substitute strings in systemd.unit(5)

Makefile.am is updated to deal with .xml.in sources.  Nothing in the
output is really changed yet, this is just preparation.

6 years agosystemd: raise level of message about lookup paths
Zbigniew Jędrzejewski-Szmek [Sat, 2 Feb 2013 15:36:11 +0000 (10:36 -0500)]
systemd: raise level of message about lookup paths

This can be pretty important for the user, and is not trivial
to figure out in all cases.

Also show failing path in error messages.

6 years agoshared: remove now unused function
Zbigniew Jędrzejewski-Szmek [Sat, 2 Feb 2013 21:12:33 +0000 (16:12 -0500)]
shared: remove now unused function

6 years agosystemd: do not remove empty paths from unit lookup path
Zbigniew Jędrzejewski-Szmek [Thu, 7 Feb 2013 03:49:19 +0000 (22:49 -0500)]
systemd: do not remove empty paths from unit lookup path

The ability to start a new unit with 'systemctl start ...' should not
depend on whether there are other units in the directory. Previously,
an additional 'systemctl daemon-reload' would be necessary to tell
systemd to update the list of unit lookup paths.

6 years agobuild-sys: create Makefile-man.am automatically
Zbigniew Jędrzejewski-Szmek [Sun, 3 Feb 2013 03:47:47 +0000 (22:47 -0500)]
build-sys: create Makefile-man.am automatically

man rules were repeating the same information in too many places,
which was error prone. Those rules can be easily generated from .xml
files. For efficiency and because python is not a required dependency,
Makefile-man.am is only regenerated when requested with

  make update-man-list

If no metadata in man/*.xml changed, this file should not change. So
only when a new man page or a new alias is added, this file should
show up in 'git diff'. The change should then be committed.

If the support for building from git without python was dropped, we
could drop Makefile-man.am from version control. This would also
increase the partial build time (since more stuff would be rebuild
whenever sources in man/*.xml would be modified), so it would probably
wouldn't be worth it.

6 years agobuild-sys: split man alias rules into separate file
Zbigniew Jędrzejewski-Szmek [Sun, 3 Feb 2013 03:38:33 +0000 (22:38 -0500)]
build-sys: split man alias rules into separate file

There shouldn't be any functional change. This is an 'automake include',
so the generated Makefile is the same (apart from ordering).

6 years agobuild-sys: replace one last mkdir hook with list item
Zbigniew Jędrzejewski-Szmek [Sun, 3 Feb 2013 03:48:38 +0000 (22:48 -0500)]
build-sys: replace one last mkdir hook with list item

Previously, errors would be ignored. Now they are not. But I don't see
how we could fail to create the directory, so I don't think that it
matters.

6 years agoman: see also dracut(7) in bootup(7)
Zbigniew Jędrzejewski-Szmek [Thu, 31 Jan 2013 20:52:13 +0000 (15:52 -0500)]
man: see also dracut(7) in bootup(7)

6 years agotests: skip tests if manager cannot be created
Zbigniew Jędrzejewski-Szmek [Wed, 6 Feb 2013 22:35:53 +0000 (17:35 -0500)]
tests: skip tests if manager cannot be created

When running without a user session, tests fail.

6 years agotests: move strv_parse_nulstr to test-strv, and actually test it
Thomas Hindoe Paaboel Andersen [Wed, 6 Feb 2013 23:33:58 +0000 (00:33 +0100)]
tests: move strv_parse_nulstr to test-strv, and actually test it

The test was originally added with this commit message:
"ask-password: supported plymouth cached passwords"

6 years agostrv: add strv_print
Thomas Hindoe Paaboel Andersen [Wed, 6 Feb 2013 23:15:27 +0000 (00:15 +0100)]
strv: add strv_print

Clearer, and spares the temp variable.

6 years agotests: run manager in session mode
Zbigniew Jędrzejewski-Szmek [Wed, 6 Feb 2013 22:03:12 +0000 (17:03 -0500)]
tests: run manager in session mode

False positives pop up otherwise.

FAIL: test-unit-name (exit: 134)
================================

Failed to open /dev/tty0: Permission denied
Failed to create root cgroup hierarchy: Permission denied
Assertion 'manager_new(SYSTEMD_SYSTEM, &m) == 0' failed at src/test/test-unit-name.c:125, function test_unit_printf(). Aborting.

6 years agotest: add a few tests and tidy up
Thomas Hindoe Paaboel Andersen [Wed, 6 Feb 2013 20:15:23 +0000 (21:15 +0100)]
test: add a few tests and tidy up

adds test of:
strv_find
strv_find_prefix
strv_overlap
strv_sort
streq_ptr
first_word

Splits tests of util.c into own file to avoid clutter as we add more.

Removed a few prints and uses _cleanup_free_ to make the tests more focused.

6 years agoman: remove boot up runlevel support
Umut Tezduyar [Fri, 1 Feb 2013 12:20:49 +0000 (13:20 +0100)]
man: remove boot up runlevel support

As of 3cdebc217c42c8529086f2965319b6a48eaaeabe support for
distro specific boot up runlevels has been dropped.

6 years agoupdate TODO
Lennart Poettering [Mon, 4 Feb 2013 21:27:32 +0000 (22:27 +0100)]
update TODO

6 years agoupdate TODO
Lennart Poettering [Wed, 30 Jan 2013 01:33:16 +0000 (02:33 +0100)]
update TODO

6 years agohwdb: update
Kay Sievers [Mon, 4 Feb 2013 17:55:10 +0000 (18:55 +0100)]
hwdb: update

6 years agoTODO: update
Kay Sievers [Mon, 4 Feb 2013 17:54:58 +0000 (18:54 +0100)]
TODO: update

6 years agocryptsetup: accept both "read-only" and "readonly" spellings
Michal Schmidt [Thu, 31 Jan 2013 10:03:09 +0000 (11:03 +0100)]
cryptsetup: accept both "read-only" and "readonly" spellings

Mukund Sivaraman pointed out that cryptsetup(5) mentions the "read-only"
option, while the code understands "readonly".

We could just fix the manpage, but for consistency in naming of
multi-word options it would be prettier to have "read-only". So let's
accept both spellings.

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=903463

6 years agotest-strv.c: test strv_join added
Daniel Buch [Wed, 30 Jan 2013 20:45:40 +0000 (21:45 +0100)]
test-strv.c: test strv_join added

6 years agotest-strv.c: Split tests into seperate functions
Daniel Buch [Wed, 30 Jan 2013 20:36:56 +0000 (21:36 +0100)]
test-strv.c: Split tests into seperate functions

test-strv.c: Leaves main clean for additional tests

6 years agosystemctl: Fix wrong assertion test
Mauro Dreissig [Wed, 30 Jan 2013 18:55:24 +0000 (16:55 -0200)]
systemctl: Fix wrong assertion test

6 years agobuild-sys: fix empty lines
Kay Sievers [Wed, 30 Jan 2013 17:14:44 +0000 (18:14 +0100)]
build-sys: fix empty lines

6 years agobuild-sys: move HAVE_MICROHTTPD HAVE_MYHOSTNAME to their own sections
Kay Sievers [Wed, 30 Jan 2013 17:01:23 +0000 (18:01 +0100)]
build-sys: move HAVE_MICROHTTPD HAVE_MYHOSTNAME to their own sections

6 years agobuild-sys: move most of HAVE_KMOD into one section
Kay Sievers [Wed, 30 Jan 2013 16:50:55 +0000 (17:50 +0100)]
build-sys: move most of HAVE_KMOD into one section

6 years agobuild-sys: add intermediate files to CLEANFILES to fix distcheck
Kay Sievers [Wed, 30 Jan 2013 16:32:02 +0000 (17:32 +0100)]
build-sys: add intermediate files to CLEANFILES to fix distcheck

6 years agoman: time - exchange some 'colons' with 'commas'
Tom Gundersen [Wed, 30 Jan 2013 11:25:19 +0000 (12:25 +0100)]
man: time - exchange some 'colons' with 'commas'

6 years agobuild-sys: add rules for sd_journal_{get,set}_data_threshold(3)
Zbigniew Jędrzejewski-Szmek [Wed, 30 Jan 2013 04:01:01 +0000 (23:01 -0500)]
build-sys: add rules for sd_journal_{get,set}_data_threshold(3)

Fixup for 350b6a65.

6 years agoAdd a few entries to .mailmap
Zbigniew Jędrzejewski-Szmek [Wed, 30 Jan 2013 02:31:41 +0000 (21:31 -0500)]
Add a few entries to .mailmap

6 years agobuild-sys: inline two definitions which were only used in one place
Zbigniew Jędrzejewski-Szmek [Wed, 30 Jan 2013 02:18:19 +0000 (21:18 -0500)]
build-sys: inline two definitions which were only used in one place

6 years agobuild-sys: keep intermediate files
Zbigniew Jędrzejewski-Szmek [Wed, 30 Jan 2013 02:17:40 +0000 (21:17 -0500)]
build-sys: keep intermediate files

Sometimes it is useful to look at them, and they don't take
up any significant amount of space. Keeping them also avoids
the message about files being removed at the end of make
run.

6 years agotest: some trivial fixes to test scripts
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 21:14:07 +0000 (16:14 -0500)]
test: some trivial fixes to test scripts

- fix typo
- use compiled systemd-nspawn
- drop --capability=... from systemd-nspawn invocation, is is the default now
- simplify sudo make invocations

6 years agotests: add test for unit name printing
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 20:25:36 +0000 (15:25 -0500)]
tests: add test for unit name printing

6 years agotests: compress unit name tests and add more asserts
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 19:39:32 +0000 (14:39 -0500)]
tests: compress unit name tests and add more asserts

6 years agotests: add test for install_full_printf()
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 19:39:06 +0000 (14:39 -0500)]
tests: add test for install_full_printf()

6 years agoinstall: allow %u an and %U specifiers in WantedBy/RequiredBy/Alias
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 03:34:38 +0000 (22:34 -0500)]
install: allow %u an and %U specifiers in WantedBy/RequiredBy/Alias

6 years agoinstall: allow specifiers in WantedBy/RequiredBy/Alias
Zbigniew Jędrzejewski-Szmek [Mon, 28 Jan 2013 04:11:31 +0000 (23:11 -0500)]
install: allow specifiers in WantedBy/RequiredBy/Alias

This allows one templated unit to refer to another templated unit
at installation time.

Examples:

> grep WantedBy ~/.config/systemd/user/mpop@.timer
WantedBy=services@%i.target

> srv disable mpop@iit.timer
rm '/home/alxchk/.config/systemd/user/services@iit.target.wants/mpop@iit.timer'
> srv enable mpop@iit.timer
ln -s '/home/alxchk/.config/systemd/user/mpop@.timer' '/home/alxchk/.config/systemd/user/services@iit.target.wants/mpop@iit.timer'

Based-on-patch-by: Oleksii Shevchuk <alxchk@gmail.com>
6 years agocore: fix %U when no User= used
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 15:32:39 +0000 (10:32 -0500)]
core: fix %U when no User= used

When the username was not explicitly specified, both %U and %u would
print the username. Make %U always print UID.

6 years agoMove generic specifier functions to shared
Zbigniew Jędrzejewski-Szmek [Mon, 28 Jan 2013 00:44:52 +0000 (19:44 -0500)]
Move generic specifier functions to shared

No functional change. This makes it possible to use them in install.c.

6 years agoinstall: automatic cleanup using local cleanup functions
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 01:33:10 +0000 (20:33 -0500)]
install: automatic cleanup using local cleanup functions

6 years agoinstall: use automatic cleanup in find_symlinks_fd()
Zbigniew Jędrzejewski-Szmek [Sun, 27 Jan 2013 20:54:00 +0000 (15:54 -0500)]
install: use automatic cleanup in find_symlinks_fd()

6 years agoshared: introduce _cleanup_set_free_free_
Zbigniew Jędrzejewski-Szmek [Tue, 29 Jan 2013 00:36:48 +0000 (19:36 -0500)]
shared: introduce _cleanup_set_free_free_

6 years agoClarify sentence
Tollef Fog Heen [Tue, 29 Jan 2013 16:57:16 +0000 (17:57 +0100)]
Clarify sentence