1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
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;