Skip to content

Commit cdfe749

Browse files
committed
Remove methodName field
1 parent 7c3c1db commit cdfe749

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ql/src/queries/security/cwe-732/WeakFilePermissions.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ class PermissivePermissionsExpr extends Expr {
4545
/** A permissions argument of a call to a File/FileUtils method that may modify file permissions */
4646
class PermissionArgument extends DataFlow::Node {
4747
private DataFlow::CallNode call;
48-
private string methodName;
4948

5049
PermissionArgument() {
51-
call = API::moduleImport(["File", "FileUtils"]).getAMethodCall(methodName) and
52-
(
50+
exists(string methodName |
51+
call = API::moduleImport(["File", "FileUtils"]).getAMethodCall(methodName)
52+
|
5353
methodName in ["chmod", "chmod_R", "lchmod"] and this = call.getArgument(0)
5454
or
5555
methodName = "mkfifo" and this = call.getArgument(1)

0 commit comments

Comments
 (0)