diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 04:04:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 04:04:59 -0500 |
| commit | 39795e850f2027a88021307a37de0381996df8a5 (patch) | |
| tree | 7b0c6a011ca25de0e0a42303008db3c41aa8bb85 /modules/host-environment.el | |
| parent | 746e770ade412c8e7992b2a98441aebde000db3c (diff) | |
| download | dotemacs-39795e850f2027a88021307a37de0381996df8a5.tar.gz dotemacs-39795e850f2027a88021307a37de0381996df8a5.zip | |
fix(recording): shell-quote device names and output paths in ffmpeg commands
The X11 video path and the audio path interpolated the mic device, system device, and output filename straight into the shell command, so a device name or recording directory with a space (or other shell metacharacter) would break the command or mishandle the path. The Wayland video branch already quoted these; the other two did not.
I wrapped all three in shell-quote-argument on both paths. To make the audio command testable, I extracted it into cj/recording--build-audio-command mirroring the existing cj/recording--build-video-command, then quoted there. Tests cover device names and filenames with spaces on both the X11 and audio builders.
Diffstat (limited to 'modules/host-environment.el')
0 files changed, 0 insertions, 0 deletions
