basic/path-util: allow flags for path_equal_or_files_same
No functional change, just a new parameters and the tests that AT_SYMLINK_NOFOLLOW works as expected.
This commit is contained in:
+3
-3
@@ -2528,7 +2528,7 @@ static int socket_deserialize_item(Unit *u, const char *key, const char *value,
|
||||
else
|
||||
LIST_FOREACH(port, p, s->ports)
|
||||
if (p->type == SOCKET_FIFO &&
|
||||
path_equal_or_files_same(p->path, value+skip)) {
|
||||
path_equal_or_files_same(p->path, value+skip, 0)) {
|
||||
socket_port_take_fd(p, fds, fd);
|
||||
break;
|
||||
}
|
||||
@@ -2542,7 +2542,7 @@ static int socket_deserialize_item(Unit *u, const char *key, const char *value,
|
||||
else
|
||||
LIST_FOREACH(port, p, s->ports)
|
||||
if (p->type == SOCKET_SPECIAL &&
|
||||
path_equal_or_files_same(p->path, value+skip)) {
|
||||
path_equal_or_files_same(p->path, value+skip, 0)) {
|
||||
socket_port_take_fd(p, fds, fd);
|
||||
break;
|
||||
}
|
||||
@@ -2596,7 +2596,7 @@ static int socket_deserialize_item(Unit *u, const char *key, const char *value,
|
||||
else
|
||||
LIST_FOREACH(port, p, s->ports)
|
||||
if (p->type == SOCKET_USB_FUNCTION &&
|
||||
path_equal_or_files_same(p->path, value+skip)) {
|
||||
path_equal_or_files_same(p->path, value+skip, 0)) {
|
||||
socket_port_take_fd(p, fds, fd);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user