diff options
author | marcus <marcus@FreeBSD.org> | 2005-07-13 17:10:47 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-07-13 17:10:47 +0000 |
commit | 087a48f8855ca2a0d166722151f081102d04ee4e (patch) | |
tree | 2b6332c19877bdf3765a31b20f49ddf767689dd0 | |
parent | 4aa994cdc4a3fae188b5b39a0e70206ad0249d30 (diff) | |
download | FreeBSD-src-087a48f8855ca2a0d166722151f081102d04ee4e.zip FreeBSD-src-087a48f8855ca2a0d166722151f081102d04ee4e.tar.gz |
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
-rw-r--r-- | sbin/devd/devd.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 9449322..9101ecf 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -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); } |