1
0
mirror of https://github.com/systemd/systemd synced 2025-10-05 11:44:45 +02:00

Compare commits

..

No commits in common. "e5f8ce13bbaf0d8b9ff597692c67fba0e38b4200" and "9813d8354cc9af33b739e8d478368adfb548edc1" have entirely different histories.

3 changed files with 2 additions and 8 deletions

3
TODO
View File

@ -22,9 +22,6 @@ Janitorial Clean-ups:
Features: Features:
* systemd-sysusers: pick up passwords from credentials logic, so that users can
easily set root user pw
* whenever we receive fds via SCM_RIGHTS make sure none got dropped due to the * whenever we receive fds via SCM_RIGHTS make sure none got dropped due to the
reception limit the kernel silently enforces. reception limit the kernel silently enforces.

View File

@ -787,10 +787,7 @@ bool ifname_valid_full(const char *p, IfnameValidFlags flags) {
if ((unsigned char) *t <= 32U) if ((unsigned char) *t <= 32U)
return false; return false;
if (IN_SET(*t, if (IN_SET(*t, ':', '/'))
':', /* colons are used by the legacy "alias" interface logic */
'/', /* slashes cannot work, since we need to use network interfaces in sysfs paths, and in paths slashes are separators */
'%')) /* %d is used in the kernel's weird foo%d format string naming feature which we really really don't want to ever run into by accident */
return false; return false;
numeric = numeric && (*t >= '0' && *t <= '9'); numeric = numeric && (*t >= '0' && *t <= '9');

View File

@ -74,7 +74,7 @@ static void test_socket_address_parse(void) {
test_socket_address_parse_one("[::1]:1234%lo", 0, AF_INET6, NULL); test_socket_address_parse_one("[::1]:1234%lo", 0, AF_INET6, NULL);
test_socket_address_parse_one("[::1]:0%lo", -EINVAL, 0, NULL); test_socket_address_parse_one("[::1]:0%lo", -EINVAL, 0, NULL);
test_socket_address_parse_one("[::1]%lo", -EINVAL, 0, NULL); test_socket_address_parse_one("[::1]%lo", -EINVAL, 0, NULL);
test_socket_address_parse_one("[::1]:1234%lo%lo", -EINVAL, 0, NULL); test_socket_address_parse_one("[::1]:1234%lo%lo", -ENODEV, 0, NULL);
test_socket_address_parse_one("[::1]:1234%xxxxasdf", -ENODEV, 0, NULL); test_socket_address_parse_one("[::1]:1234%xxxxasdf", -ENODEV, 0, NULL);
test_socket_address_parse_one("192.168.1.254:8888", 0, AF_INET, NULL); test_socket_address_parse_one("192.168.1.254:8888", 0, AF_INET, NULL);
test_socket_address_parse_one("/foo/bar", 0, AF_UNIX, NULL); test_socket_address_parse_one("/foo/bar", 0, AF_UNIX, NULL);