diff options
Diffstat (limited to 'sbin/devd/devd.cc')
-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); } |