- Fixed a bug where the diagnostics command failed to detect missing
  external utilities on Solaris and NetBSD.
This commit is contained in:
Owen Clarke 2012-07-26 22:08:34 +10:00
parent 39456a3243
commit 276971675a
2 changed files with 5 additions and 3 deletions

View file

@ -10,6 +10,8 @@ Bugs
+ Fixed bug #1038, which prints blank lines with bulk changes and when the + Fixed bug #1038, which prints blank lines with bulk changes and when the
verbose attributes does not specify it. Lines do a better separation between verbose attributes does not specify it. Lines do a better separation between
each changes also. each changes also.
+ Fixed bug #1042, where the 'diagnostics' command failed to detect missing
external utilities on Solaris and NetBSD
------ old releases ------------------------------ ------ old releases ------------------------------

View file

@ -229,7 +229,7 @@ int CmdDiagnostics::execute (std::string& output)
std::vector <std::string> matches; std::vector <std::string> matches;
char buffer [1024] = {0}; char buffer [1024] = {0};
FILE* fp; 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); char* p = fgets (buffer, 1023, fp);
pclose (fp); pclose (fp);
@ -243,7 +243,7 @@ int CmdDiagnostics::execute (std::string& output)
<< "\n"; << "\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); char* p = fgets (buffer, 1023, fp);
pclose (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); char* p = fgets (buffer, 1023, fp);
pclose (fp); pclose (fp);