mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
dbd9130d9d
* fix: env var leak in tr_spawn_async()
20 lines
407 B
C++
20 lines
407 B
C++
/*
|
|
* This file Copyright (C) 2017 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <map>
|
|
#include <string_view>
|
|
|
|
#include "tr-macros.h"
|
|
|
|
bool tr_spawn_async(
|
|
char const* const* cmd,
|
|
std::map<std::string_view, std::string_view> const& env,
|
|
char const* work_dir,
|
|
struct tr_error** error);
|