2017-04-11 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'lib/rduser.cpp' that broke the build on Windows.
This commit is contained in:
Fred Gleason 2017-04-11 09:56:53 -04:00
parent 86024cde30
commit a7f6ad1cac
2 changed files with 4 additions and 1 deletions

View File

@ -15727,3 +15727,5 @@
* Incremented the package version to 2.15.3int00.
2017-04-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a typo in 'lib/Makefile.am'.
2017-04-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rduser.cpp' that broke the build on Windows.

View File

@ -67,13 +67,14 @@ bool RDUser::authenticated(bool webuser) const
}
delete q;
}
#ifndef WIN32
else {
QString cmd=
"rdauth "+pamService()+" \""+user_name+"\" \""+user_password+"\"";
int exitcode=system(cmd);
return WEXITSTATUS(exitcode)==0;
}
#endif // WIN32
return false;
}