mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-29 07:02:34 +02:00
Fixed conflict in 'ChangeLog'
Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
commit
1a6e68160c
@ -19933,3 +19933,9 @@
|
||||
2020-08-05 Patrick Linstruth <patrick@deltecent.com>
|
||||
* Fixed regression with "Scheduler Code:" label overlapping "Group"
|
||||
combobox in rdlibrary(1).
|
||||
2020-06-23 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Applied the RD_MAX_CART_NUMBER define in
|
||||
'rdairplay/local_macros.cpp'.
|
||||
2020-08-10 Brian McGlynn <bmcglynn@geneseemedia.net>
|
||||
* Allow RN Macro to run when Rivendell daemons running as non-root
|
||||
'ripcd/local_macros.cpp'.
|
||||
|
@ -1097,10 +1097,20 @@ void MainObject::RunCommand(const QString &user,const QString &group,
|
||||
//
|
||||
// Run it
|
||||
//
|
||||
if(vfork()==0) {
|
||||
execv(RD_RUNUSER,(char * const *)args);
|
||||
exit(0); // Just in case...
|
||||
}
|
||||
|
||||
//Can only change user/group if we are running as root
|
||||
if(getuid()==0) {
|
||||
if(vfork()==0) {
|
||||
execv(RD_RUNUSER,(char * const *)args);
|
||||
exit(0); // Just in case...
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(fork()==0) {
|
||||
system((const char *)cmd);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Free the heap storage
|
||||
|
Loading…
x
Reference in New Issue
Block a user