mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
lgtm: dirname() is now icky
This commit is contained in:
parent
15e2182fb3
commit
0b1c6448be
|
@ -46,6 +46,9 @@ predicate potentiallyDangerousFunction(Function f, string message) {
|
|||
) or (
|
||||
f.getQualifiedName() = "accept" and
|
||||
message = "Call to accept() is not O_CLOEXEC-safe. Use accept4() instead."
|
||||
) or (
|
||||
f.getQualifiedName() = "dirname" and
|
||||
message = "Call dirname() is icky. Use path_extract_directory() instead."
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue