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:
Joe Marcus Clarke 2005-07-13 17:10:47 +00:00
parent b5418f5134
commit 8381892977
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147972

View File

@ -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);
}