This commit is contained in:
Andy Green 2022-02-08 05:10:51 +00:00
parent 6c53da692e
commit 5985f817da
2 changed files with 4 additions and 1 deletions

3
lgtm.yml Normal file
View File

@ -0,0 +1,3 @@
queries:
- exclude: cpp/short-global-name
- exclude: cpp/useless-expression

View File

@ -440,7 +440,7 @@ lws_socket_bind(struct lws_vhost *vhost, struct lws *wsi,
(unsigned int)uid,
(unsigned int)gid);
if (chmod(iface, 0660)) {
if (chmod(iface, 0660)) { /* lgtm [cpp/toctou-race-condition] */
lwsl_wsi_err(wsi, "0600 mode on %s fail", iface);
return LWS_ITOSA_NOT_EXIST;