mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-09 17:07:44 +02:00
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in rddbmgr(8). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
68258f71d2
commit
76e3d550ba
@ -21848,3 +21848,5 @@
|
||||
* Cleaned up compile warnings in rdgen(1).
|
||||
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compile warnings in rdimport(1).
|
||||
2021-06-02 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compile warnings in rddbmgr(8).
|
||||
|
@ -2489,10 +2489,11 @@ bool MainObject::InititalizeNewDb(const QString &station_name,bool gen_audio,
|
||||
|
||||
QString cmd=QString().sprintf("rdgen -t 10 -l 16 %s",
|
||||
filename.toUtf8().constData());
|
||||
system(cmd.toUtf8());
|
||||
RDCheckExitCode("InititalizeNewDb() system",system(cmd.toUtf8()));
|
||||
if(getuid()==0) {
|
||||
RDCheckExitCode("InititalizeNewDb() chown",
|
||||
chown(filename.toUtf8(),RDConfiguration()->uid(),
|
||||
RDConfiguration()->gid());
|
||||
RDConfiguration()->gid()));
|
||||
chmod (filename.toUtf8(),S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user