mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #1042
- Fixed a bug where the diagnostics command failed to detect missing external utilities on Solaris and NetBSD.
This commit is contained in:
parent
39456a3243
commit
276971675a
2 changed files with 5 additions and 3 deletions
|
@ -229,7 +229,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
std::vector <std::string> matches;
|
||||
char buffer [1024] = {0};
|
||||
FILE* fp;
|
||||
if ((fp = popen ("scp 2>&1", "r")))
|
||||
if ((fp = popen ("/usr/bin/env scp 2>&1", "r")))
|
||||
{
|
||||
char* p = fgets (buffer, 1023, fp);
|
||||
pclose (fp);
|
||||
|
@ -243,7 +243,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
<< "\n";
|
||||
}
|
||||
|
||||
if ((fp = popen ("rsync --version 2>&1", "r")))
|
||||
if ((fp = popen ("/usr/bin/env rsync --version 2>&1", "r")))
|
||||
{
|
||||
char* p = fgets (buffer, 1023, fp);
|
||||
pclose (fp);
|
||||
|
@ -260,7 +260,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
}
|
||||
}
|
||||
|
||||
if ((fp = popen ("curl --version 2>&1", "r")))
|
||||
if ((fp = popen ("/usr/bin/env curl --version 2>&1", "r")))
|
||||
{
|
||||
char* p = fgets (buffer, 1023, fp);
|
||||
pclose (fp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue