Skip to content

Commit

Permalink
gyp: add quotes for action's executable
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Oct 24, 2023
1 parent ed4584f commit ef4d45c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node.gyp
Expand Up @@ -762,7 +762,7 @@
'<(fipsmodule)',
],
'action': [
'python', 'tools/copyfile.py',
'<(python)', 'tools/copyfile.py',
'<(fipsmodule_internal)',
'<(fipsmodule)',
],
Expand All @@ -772,7 +772,7 @@
'inputs': [ '<(opensslconfig)', ],
'outputs': [ '<(opensslconfig_internal)', ],
'action': [
'python', 'tools/enable_fips_include.py',
'<(python)', 'tools/enable_fips_include.py',
'<(opensslconfig)',
'<(opensslconfig_internal)',
'<(fipsconfig)',
Expand Down
1 change: 1 addition & 0 deletions tools/gyp/pylib/gyp/generator/msvs.py
Expand Up @@ -438,6 +438,7 @@ def _BuildCommandLineForRuleRaw(
# Support a mode for using cmd directly.
# Convert any paths to native form (first element is used directly).
# TODO(quote): regularize quoting path names throughout the module
command[1] = '"%s"' % command[1]
arguments = ['"%s"' % i for i in arguments]
# Collapse into a single command.
return input_dir_preamble + " ".join(command + arguments)
Expand Down

0 comments on commit ef4d45c

Please sign in to comment.