Skip to content

Commit 2686701

Browse files
authored
CDRIVER-4512 do not use execdir (#1516)
Resolves insecure error produced by `find`
1 parent 7f1a88b commit 2686701

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.evergreen/config_generator/components/funcs/fetch_det.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FetchDET(Function):
2121
bash_exec(
2222
command_type=EvgCommandType.SETUP,
2323
working_dir="drivers-evergreen-tools",
24-
script='find .evergreen -type f -name "*.sh" -execdir chmod +rx "{}" \;',
24+
script='find .evergreen -type f -name "*.sh" -exec chmod +rx "{}" \;',
2525
),
2626

2727
# python is used frequently enough by many tasks that it is worth

.evergreen/generated_configs/functions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ functions:
180180
working_dir: drivers-evergreen-tools
181181
args:
182182
- -c
183-
- find .evergreen -type f -name "*.sh" -execdir chmod +rx "{}" \;
183+
- find .evergreen -type f -name "*.sh" -exec chmod +rx "{}" \;
184184
- command: subprocess.exec
185185
type: setup
186186
params:

0 commit comments

Comments
 (0)