2019-01-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression that caused invalid values for PyPAD UID/GID
	to be loaded.
This commit is contained in:
Fred Gleason
2019-01-09 18:14:29 -05:00
parent 23f10de6c9
commit df90d567ba
3 changed files with 8 additions and 3 deletions

View File

@@ -18350,3 +18350,6 @@
2019-01-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdpadengined(8) that caused process
restarts to fail.
2019-01-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression that caused invalid values for PyPAD UID/GID
to be loaded.

View File

@@ -1 +1 @@
3.0.0alpha04a
3.0.0alpha04

View File

@@ -654,10 +654,12 @@ bool RDConfig::load()
if((groups=getgrnam(profile->stringValue("Identity","AudioGroup")))!=NULL) {
conf_gid=groups->gr_gid;
}
if((user=getpwnam(profile->stringValue("Identity","PypadOwner")))!=NULL) {
if((user=getpwnam(profile->stringValue("Identity","PypadOwner",
RD_DEFAULT_PYPAD_OWNER)))!=NULL) {
conf_pypad_uid=user->pw_uid;
}
if((groups=getgrnam(profile->stringValue("Identity","PypadGroup")))!=NULL) {
if((groups=getgrnam(profile->stringValue("Identity","PypadGroup",
RD_DEFAULT_PYPAD_GROUP)))!=NULL) {
conf_pypad_gid=groups->gr_gid;
}
conf_cae_logfile=profile->stringValue("Caed","Logfile","");