Andrew Clayton
Andrew Clayton
> > Assuming that mkdir function follows mkdir(2) then mode is modified by the umask. We could stick an explicit chmod(2) in there, but I'd say it's better to let...
In case anyone else comes here looking, it seems the IRC channel has moved to #nginx on irc.libera.chat (I guess since the recent freenode happenings...).
I wonder if it even needs to be a file? Or could it just be stored internally to unit? That way users won't go thinking they can or should be...
@lucatacconi Could you test this [patch](https://github.com/nginx/unit/issues/753#issuecomment-1248801216)? It should allow you to access the URL without a trailing '/'. You can test it with your original config with the match as...
I've included a bunch of tags at the end this commit to _demonstrate_ what they would look like, they can be removed before committing... The tags serve several functions, including...
> > 3. What about abstract unix socket? > > I don't remember, but I think we don't support abstract unix sockets in the control socket. Do we? No, I'm...
> > Actually, let me double check that... So, it looks OK ```shell $ strace -f -e mkdir,mkdirat,bind /opt/unit/sbin/unitd --no-daemon 2022/08/15 16:24:18 [warn] 12285#12285 Unit is running unprivileged, then it...
> > Let's separate it into two requirements. > > ``` > > 1. If it reasonable to limit the creation of socket directory? For example: > > ``` >...
OK, so after some code splunking, I have found the following... In unit there are currently two calls to bind(2) Controller socket bind(2) path ``` main() nxt_runtime_create() nxt_runtime_conf_init() nxt_runtime_controller_socket() nxt_listen_socket_create()...
This version factors out the directory making code into a new nxt_fs_mkdir_dirname() function in src/nxt_fs.c I've re-introduced the check for if we find a '/' in the path as this...