Daniel Mack
8e542fcdc4
unit-name: fix memory leak
...
Fix a memory leak introduced by 2fc09a9c . 's' is used twice in this
function, and if free_and_strdup() fails, the pointer is left untouched.
2015-07-30 15:51:50 +02:00
Daniel Mack
ed070f131f
Merge pull request #787 from dvdhrm/bus-list
...
sd-bus: fix parsing of KDBUS_CMD_LIST
2015-07-30 15:35:52 +02:00
David Herrmann
89c240e3a5
sd-bus: fix parsing of KDBUS_CMD_LIST
...
We *must not* assume that an entry returned by KDBUS_CMD_LIST only
carries a single KDBUS_ITEM_OWNED_NAME. Similarly, we already parse
multiple such items for message-metadata, so make sure we support the
same on KDBUS_CMD_LIST.
By relying on the kernel to return all names separately, we limit the
kernel API significantly. Stop this and let the kernel decide how to
return its data.
2015-07-30 14:12:09 +02:00
Daniel Mack
87d0ac4350
Merge pull request #784 from eworm-de/typo
...
man: fix typo in man systemd-machine-id-commit
2015-07-30 13:22:50 +02:00
David Herrmann
9e24850718
Merge pull request #785 from zonque/free-and-strdup
...
tree-wide: use free_and_strdup()
2015-07-30 13:22:15 +02:00
Daniel Mack
2fc09a9cdd
tree-wide: use free_and_strdup()
...
Use free_and_strdup() where appropriate and replace equivalent,
open-coded versions.
2015-07-30 13:09:01 +02:00
Christian Hesse
47c453f6a6
man: fix typo in man systemd-machine-id-commit
2015-07-30 10:24:16 +02:00
Daniel Mack
5f17089ac1
Merge pull request #783 from whot/hwdb-updates
...
Hwdb updates
2015-07-30 09:30:49 +02:00
Peter Hutterer
47b84eac21
hwdb: add min/max/resolution override for Appletouch one-button touchpads
...
Macbook2,1, late 2006 model.
https://bugzilla.redhat.com/show_bug.cgi?id=1246651
2015-07-30 16:17:19 +10:00
Peter Hutterer
5b7246d09d
hwdb: add resolution values for Asus K52JT touchpad
...
https://bugs.freedesktop.org/show_bug.cgi?id=91364
2015-07-30 16:17:16 +10:00
Daniel Mack
65c85ef511
Merge pull request #779 from poettering/fflush-and-check
...
tree-wide: port everything over to fflush_and_check()
2015-07-29 20:43:54 +02:00
Tom Gundersen
1051d049a8
Merge pull request #764 from ssahani/vxlan1
...
networkd: Add VXLAN Netlink attributes
2015-07-29 20:40:17 +02:00
Daniel Mack
c2570b3de2
Merge branch 'master' of github.com:systemd/systemd
2015-07-29 20:31:15 +02:00
Lennart Poettering
dacd6cee76
tree-wide: port everything over to fflush_and_check()
...
Some places invoked fflush() directly with their own manual error
checking, let's unify all that by using fflush_and_check().
This also unifies the general error paths of fflush()+rename() file
writers.
2015-07-29 20:31:07 +02:00
Daniel Mack
7fc309b3a8
Merge branch 'pr/761'
2015-07-29 20:31:02 +02:00
Tom Gundersen
be0c13707d
networkd-wait-online: only consider interfaces given on the commandline
...
If some interfaces are given on the commandline, ignore all others.
2015-07-29 20:30:50 +02:00
Kay Sievers
8110e144ff
sd-boot: stub - export LoaderDevicePartUUID
2015-07-29 19:36:17 +02:00
Daniel Mack
85636547e7
Merge pull request #778 from ssahani/flow
...
networkd: fix size of networkd binary
2015-07-29 19:04:13 +02:00
Kay Sievers
8388607b58
build-sys: fix "make doc-sync"
2015-07-29 18:50:32 +02:00
Susant Sahani
6870b41563
networkd: fix size of networkd binary
...
This patch fixes the size of networkd
Bug #775
before:
size systemd-networkd
text data bss dec hex filename
1493755 8424392 2337 9920484 975fe4 systemd-networkd
After
$ size systemd-networkd
text data bss dec hex filename
1493555 35752 2337 1531644 175efc systemd-networkd
2015-07-29 22:20:06 +05:30
Lennart Poettering
c4a6d5085a
Merge pull request #777 from kaysievers/gtp-auto
...
gpt-auto-generator: merge efi-boot-generator
2015-07-29 18:45:48 +02:00
Lennart Poettering
2b32ffa07d
Merge pull request #774 from dvdhrm/gvariant3
...
gvariant: fix encoding of unary type and root-variant (v3)
2015-07-29 18:20:17 +02:00
Kay Sievers
59512f21d7
gpt-auto-generator: merge efi-boot-generator
2015-07-29 18:16:48 +02:00
Daniel Mack
4eb344b1b8
Merge pull request #776 from baracoder/master
...
man: unit: fix StartTimeoutSec
2015-07-29 17:52:46 +02:00
Herman Fries
21d1130207
man: unit: fix StartTimeoutSec
...
should be TimeoutStartSec
2015-07-29 17:45:40 +02:00
David Herrmann
03ebf5e89b
sd-bus: fix encoding/decoding gvariant root container
...
The gvariant root container contains a 'variant' at the end, which embeds
the whole message body. This variant *must* contain a structure so we are
compatible to dbus1. Otherwise, it could encode at most 1 type, instead
of a full signature.
Our gvariant message parser already parses the variant-content as a
structure, so we're mostly good. However, it does *not* include the
opening and closing parantheses, nor does it parse them.
This patch fixes the decoder to verify a message contains the
parantheses, and also make the encoder add those parantheses into the
marshaled message.
2015-07-29 16:46:24 +02:00
David Herrmann
e53d21d007
sd-bus: fix marshaling of unary type
...
The unary type has a fixed size of 1 in gvariant. Make sure we properly
encode it as such. Right now, we encode/decode it as empty sequence.
2015-07-29 16:38:14 +02:00
David Herrmann
e4e6699395
NEWS: update 223 contributors
...
Update v223 contributors and release date.
2015-07-29 15:25:45 +02:00
Kay Sievers
e2b6ad0398
build-sys: update git-tar
2015-07-29 15:02:58 +02:00
Daniel Mack
409f2e178c
Merge pull request #769 from poettering/socket-util-no-log
...
socket-util: library calls shouldn't log on their own
2015-07-29 13:05:36 +02:00
David Herrmann
9a8fb5ae17
sd-bus: drop redundant code
...
If c->item_size is 0, the next item to parse in a structure is empty.
However, this also implies that the signature must be empty. The latter
case is already handled just fine by enter_struct_or_dict_entry() so
there is no reason to handle the same case in the caller.
2015-07-29 13:03:09 +02:00
David Herrmann
a388569f60
sd-bus: don't assert() on valid signatures
...
Right now sd_bus_message_skip() will abort execution if passed a
signature of the unary type "()". Regardless whether this should be
supported or not, we really must not abort. Drop the incorrect assertion
and add a test-case for this.
2015-07-29 13:03:09 +02:00
David Herrmann
39d1a2d05d
build: bump version info
...
Bump version to 223 and increase libsystemd libtool-info as we added a
structure-member (without increasing structure size) to sd-bus-vtable.
2015-07-29 12:44:55 +02:00
Daniel Mack
3512af1706
Merge pull request #768 from poettering/resolved-localhost
...
resolved: never attempt to resolve loopback addresses via DNS/LLMNR/mDNS
2015-07-29 12:44:22 +02:00
Lennart Poettering
19a9bc49df
Merge pull request #767 from torstehu/fix-typo
...
treewide: fix typos
2015-07-29 12:40:55 +02:00
Lennart Poettering
1938ac5136
socket-util: library calls shouldn't log on their own
...
Instead, make sure that all callers log properly.
2015-07-29 12:38:22 +02:00
Lennart Poettering
9436e8cae4
resolved: never attempt to resolve loopback addresses via DNS/LLMNR/mDNS
...
We already refuse to resolve "localhost", hence we should also refuse
resolving "127.0.0.1" and friends.
2015-07-29 12:30:49 +02:00
Torstein Husebø
94e5ba370a
treewide: fix typos
2015-07-29 12:29:46 +02:00
David Herrmann
f5f113f666
NEWS: add 'macvtap' section
...
systemd-networkd now supports 'macvtap' devices, similar to the already
supported 'macvlan' devices.
2015-07-29 12:12:10 +02:00
David Herrmann
48579c4b6a
Merge pull request #747 from dvdhrm/consoled
...
terminal: drop unfinished code
2015-07-29 12:03:34 +02:00
Susant Sahani
8b414e52d1
man: add man for VXLAN Group Policy option
2015-07-29 14:06:46 +05:30
Susant Sahani
ea84fd5cb3
networkd: vxlan add support for GBP
...
This patch add support for vxlan VXLAN Group Policy Option.
https://tools.ietf.org/html/draft-smith-vxlan-group-policy-00
http://lwn.net/Articles/628683/
2015-07-29 14:05:34 +05:30
Susant Sahani
c06aead0c3
sd-netlink: introduce api for new NL type NLA_FLAG
2015-07-29 11:59:16 +05:30
Susant Sahani
de566208ee
sd-netlink: add support for new type NETLINK_TYPE_FLAG
...
NETLINK_TYPE_FLAG is NLA_FLAG.
This new type will be used in NLA_FLAG for example
IFLA_VXLAN_GBP and IFLA_VXLAN_REMCSUM_NOPARTIAL
2015-07-29 11:29:04 +05:30
Susant Sahani
452c956933
sd-netlink: add support for vxlan attributes
2015-07-29 11:28:57 +05:30
Tom Gundersen
79ac8ba973
networkd-wait-online: fix race
...
We must consider 'pending' links as if they may be managed by networkd, as this
is the state we enter before deciding wether networkd should manage the link
or not, so we better wait for this decision being made.
2015-07-29 01:45:46 +02:00
Daniel Mack
6ad6d61f9d
Merge pull request #760 from teg/resolved-fix-nsec-types
...
resolved: fix NSEC type windows
2015-07-28 23:54:43 +02:00
Tom Gundersen
bfcc67093d
resolved: packet - refuse empty type bitmaps
...
The NSEC type itself must at least be in the bitmap, so NSEC records with empty
bitmaps must be bogus.
2015-07-28 23:25:52 +02:00
Tom Gundersen
2ad613addb
resolved: packet - fix read_type_window()
...
We were tracking the bit offset inside each byte, rather than inside the whole bitmap.
2015-07-28 23:25:52 +02:00
Tom Gundersen
1792f2231f
resolve: packet - fix append_types()
...
We were counting the number of bits set rather than the number of bytes they occupied.
2015-07-28 23:25:52 +02:00