Skip to content

Commit 7ed2c4e

Browse files
committed
mkoctfile: Support spaces in path of binary for strip step.
* src/mkoctfile.in.cc (main): Quote argument for strip command. * etc/NEWS.10.md: Add note about change.
1 parent d9919da commit 7ed2c4e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

etc/NEWS.10.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Summary of bugs fixed for version 10.2.0 (tbd):
3333
- Check for undefined output when indexing function output (bug #67111).
3434
- `perms`: Fix buffer overflow and crash; minor code cleanup (bug #67115).
3535
- `mkoctfile`: Support spaces in output path of linker step.
36+
- `mkoctfile`: Support spaces in path to binary when stripping debug info.
3637

3738

3839
### GUI

src/mkoctfile.in.cc

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ main (int argc, char **sys_argv)
14191419

14201420
if (strip)
14211421
{
1422-
std::string cmd = "strip " + octfile;
1422+
std::string cmd = "strip " + quote_path (octfile);
14231423

14241424
int status = run_command (cmd, verbose, printonly);
14251425

0 commit comments

Comments
 (0)