Replace fch{mod,own} with straight ch{mod,own} as the former cannot be used
on socket file descriptors. Reviewed by: secteam (cperciva) Approved by: imp
This commit is contained in:
parent
4aa994cdc4
commit
087a48f885
@ -675,8 +675,8 @@ create_socket(const char *name)
|
||||
if (bind(fd, (struct sockaddr *) & sun, slen) < 0)
|
||||
err(1, "bind");
|
||||
listen(fd, 4);
|
||||
fchown(fd, 0, 0); /* XXX - root.wheel */
|
||||
fchmod(fd, 0660);
|
||||
chown(name, 0, 0); /* XXX - root.wheel */
|
||||
chmod(name, 0660);
|
||||
return (fd);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user