mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 21:41:07 +01:00
Make devd build with libc++.
MFC after: 3 days
This commit is contained in:
parent
e3726a671a
commit
5d586d29dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236388
@ -807,7 +807,7 @@ create_socket(const char *name)
|
||||
unlink(name);
|
||||
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
|
||||
err(1, "fcntl");
|
||||
if (bind(fd, (struct sockaddr *) & sun, slen) < 0)
|
||||
if (::bind(fd, (struct sockaddr *) & sun, slen) < 0)
|
||||
err(1, "bind");
|
||||
listen(fd, 4);
|
||||
chown(name, 0, 0); /* XXX - root.wheel */
|
||||
|
Loading…
Reference in New Issue
Block a user