From 5985f817da19f90cf259175f4ddae06ca9773564 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 8 Feb 2022 05:10:51 +0000 Subject: [PATCH] lgtm.yml --- lgtm.yml | 3 +++ lib/core-net/network.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 lgtm.yml diff --git a/lgtm.yml b/lgtm.yml new file mode 100644 index 000000000..ce03894f9 --- /dev/null +++ b/lgtm.yml @@ -0,0 +1,3 @@ +queries: +- exclude: cpp/short-global-name +- exclude: cpp/useless-expression diff --git a/lib/core-net/network.c b/lib/core-net/network.c index f84db0a4a..f276a28dd 100644 --- a/lib/core-net/network.c +++ b/lib/core-net/network.c @@ -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;