Files
systemd/src/libsystemd
Filipe Brandenburger 3f10c66270 bus-socket: Fix line_begins() to accept word matching full string
The switch to memory_startswith() changed the logic to only look for a space or
NUL byte after the matched word, but matching the full size should also be
acceptable.

This changed the behavior of parsing of "AUTH\r\n", where m will be set to 4,
since even though the word will match, the check for it being followed by ' '
or NUL will make line_begins() return false.

Tested:

- Using netcat to connect to the private socket directly:
  $ echo -ne '\0AUTH\r\n' | sudo nc -U /run/systemd/private
  REJECTED EXTERNAL ANONYMOUS

- Running the Ignition blackbox test:
  $ sudo sh -c 'PATH=$PWD/bin/amd64:$PATH ./tests.test'
  PASS

Fixes: d27b725abf
2018-07-17 21:42:20 +02:00
..
2018-06-29 11:00:30 +09:00
2018-06-29 11:00:30 +09:00
2018-06-29 11:02:17 +09:00
2018-06-29 11:02:17 +09:00
2018-06-29 11:00:30 +09:00
2018-06-29 11:02:17 +09:00
2018-06-29 11:02:17 +09:00
2018-06-29 11:00:30 +09:00
2018-06-29 11:00:30 +09:00
2018-06-29 11:00:30 +09:00
2018-06-14 13:03:20 +02:00