mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Quote empty arguments in Windows command line generation
This commit is contained in:
parent
7ab8aa69c4
commit
3c88559379
2 changed files with 6 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ static int build_spindown_argv(int argc, char* argv[], char* spindown_argv[5])
|
|||
|
||||
static int needs_quote(const WCHAR* arg)
|
||||
{
|
||||
if (*arg == 0)
|
||||
return 1;
|
||||
|
||||
while (*arg) {
|
||||
if (*arg == L' ' || *arg == L'\t' || *arg == L'"')
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -2493,6 +2493,9 @@ int windows_join(thread_id_t thread, void** retval)
|
|||
|
||||
static int needs_quote(const WCHAR* arg)
|
||||
{
|
||||
if (*arg == 0)
|
||||
return 1;
|
||||
|
||||
while (*arg) {
|
||||
if (*arg == L' ' || *arg == L'\t' || *arg == L'"')
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue