2003-11-04  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
	sends the netlink data.
	* sysdeps/unix/sysv/linux/check_pf.c: Likewise.
This commit is contained in:
Ulrich Drepper 2003-11-13 23:39:31 +00:00
parent a8067e8f89
commit 25ce4c6b9e
5 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2003-11-04 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
sends the netlink data.
* sysdeps/unix/sysv/linux/check_pf.c: Likewise.
2003-11-13 Jakub Jelinek <jakub@redhat.com>
* posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET

View File

@ -295,7 +295,8 @@ a[[.x. &C EBRACK
a[[.x.] &C EBRACK
a[[.x.]] & ax ax
a[[.x,.]] &C ECOLLATE
# XXX Doesn't work yet.
# This test is invalid. "one" is no collating symbol in any standardized
# locale.
# a[[.one.]]b & a1b a1b
a[[.notdef.]]b &C ECOLLATE
a[[.].]]b & a]b a]b
@ -327,7 +328,8 @@ a[[=b &C EBRACK
a[[=b= &C EBRACK
a[[=b=] &C EBRACK
a[[=b,=]] &C ECOLLATE
# XXX Doesn't work yet.
# This test is invalid. "one" is no collating symbol in any standardized
# locale.
#a[[=one=]]b & a1b a1b
# complexities

View File

@ -384,7 +384,7 @@ main (int argc, char **argv)
{NULL, 0, NULL, 0 }
};
while (getopt_long (argc, argv, "u", options, NULL) >= 0);
while (getopt_long (argc, argv, "", options, NULL) >= 0);
if (optind + 1 != argc)
{

View File

@ -86,7 +86,7 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6)
NLMSG_OK (nlmh, (size_t) read_len);
nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, read_len))
{
if ((pid_t) nlmh->nlmsg_pid != pid
if (nladdr.nl_pid != 0 || (pid_t) nlmh->nlmsg_pid != pid
|| nlmh->nlmsg_seq != req.nlh.nlmsg_seq)
continue;

View File

@ -186,7 +186,8 @@ netlink_receive (struct netlink_handle *h)
NLMSG_OK (nlmh, (size_t) read_len);
nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, read_len))
{
if ((pid_t) nlmh->nlmsg_pid != h->pid || nlmh->nlmsg_seq != h->seq)
if (nladdr.nl_pid != 0 || (pid_t) nlmh->nlmsg_pid != h->pid
|| nlmh->nlmsg_seq != h->seq)
continue;
if (nlmh->nlmsg_type == NLMSG_DONE)