@@ -223,7 +223,7 @@ static uint32_t chown_file(Platform *platform, const char *path,
223
223
command.Printf (" :%d" , gid);
224
224
command.Printf (" %s" , path);
225
225
int status;
226
- platform->RunShellCommand (command.GetData (), nullptr , &status, nullptr ,
226
+ platform->RunShellCommand (command.GetData (), FileSpec () , &status, nullptr ,
227
227
nullptr , std::chrono::seconds (10 ));
228
228
return status;
229
229
}
@@ -248,7 +248,7 @@ PlatformPOSIX::PutFile(const lldb_private::FileSpec &source,
248
248
StreamString command;
249
249
command.Printf (" cp %s %s" , src_path.c_str (), dst_path.c_str ());
250
250
int status;
251
- RunShellCommand (command.GetData (), nullptr , &status, nullptr , nullptr ,
251
+ RunShellCommand (command.GetData (), FileSpec () , &status, nullptr , nullptr ,
252
252
std::chrono::seconds (10 ));
253
253
if (status != 0 )
254
254
return Status (" unable to perform copy" );
@@ -278,7 +278,7 @@ PlatformPOSIX::PutFile(const lldb_private::FileSpec &source,
278
278
GetHostname (), dst_path.c_str ());
279
279
LLDB_LOGF (log, " [PutFile] Running command: %s\n " , command.GetData ());
280
280
int retcode;
281
- Host::RunShellCommand (command.GetData (), nullptr , &retcode, nullptr ,
281
+ Host::RunShellCommand (command.GetData (), FileSpec () , &retcode, nullptr ,
282
282
nullptr , std::chrono::minutes (1 ));
283
283
if (retcode == 0 ) {
284
284
// Don't chown a local file for a remote system
@@ -314,7 +314,7 @@ lldb_private::Status PlatformPOSIX::GetFile(
314
314
StreamString cp_command;
315
315
cp_command.Printf (" cp %s %s" , src_path.c_str (), dst_path.c_str ());
316
316
int status;
317
- RunShellCommand (cp_command.GetData (), nullptr , &status, nullptr , nullptr ,
317
+ RunShellCommand (cp_command.GetData (), FileSpec () , &status, nullptr , nullptr ,
318
318
std::chrono::seconds (10 ));
319
319
if (status != 0 )
320
320
return Status (" unable to perform copy" );
@@ -335,7 +335,7 @@ lldb_private::Status PlatformPOSIX::GetFile(
335
335
dst_path.c_str ());
336
336
LLDB_LOGF (log, " [GetFile] Running command: %s\n " , command.GetData ());
337
337
int retcode;
338
- Host::RunShellCommand (command.GetData (), nullptr , &retcode, nullptr ,
338
+ Host::RunShellCommand (command.GetData (), FileSpec () , &retcode, nullptr ,
339
339
nullptr , std::chrono::minutes (1 ));
340
340
if (retcode == 0 )
341
341
return Status ();
0 commit comments