- first pass to unify/cleanup uid handling (-236b)

This needs further love, alot of love.. Tito?
This commit is contained in:
Bernhard Reutner-Fischer
2008-07-21 14:41:33 +00:00
parent a53de7f7c2
commit d73cbd31a2
13 changed files with 26 additions and 26 deletions

View File

@ -37,7 +37,7 @@ int FAST_FUNC xrtnl_open(struct rtnl_handle *rth/*, unsigned subscriptions*/)
xbind(rth->fd, (struct sockaddr*)&rth->local, sizeof(rth->local));
addr_len = sizeof(rth->local);
if (getsockname(rth->fd, (struct sockaddr*)&rth->local, &addr_len) < 0)
bb_perror_msg_and_die("cannot getsockname");
bb_perror_msg_and_die("getsockname");
if (addr_len != sizeof(rth->local))
bb_error_msg_and_die("wrong address length %d", addr_len);
if (rth->local.nl_family != AF_NETLINK)