mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-03 09:32:34 +02:00
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'utils/rdselect_helper/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
75e86ec9e4
commit
f507d55955
@ -25020,3 +25020,5 @@
|
||||
* Cleaned up compiler warnings in 'utils/rdexport/'.
|
||||
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compiler warnings in 'utils/rdimport/'.
|
||||
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compiler warnings in 'utils/rdselect_helper/'.
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// SETUID helper script for rdselect(1)
|
||||
//
|
||||
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -258,8 +258,8 @@ bool MainObject::ProcessActive(const QStringList &cmds) const
|
||||
if(ok) {
|
||||
if((f=fopen((QString("/proc/")+dirs[i]+"/cmdline").toUtf8(),"r"))!=NULL) {
|
||||
if(fgets(line,1024,f)!=NULL) {
|
||||
QStringList f1=QString(line).split(" ",QString::SkipEmptyParts);
|
||||
QStringList f2=f1[0].split("/",QString::SkipEmptyParts);
|
||||
QStringList f1=QString(line).split(" ",Qt::SkipEmptyParts);
|
||||
QStringList f2=f1[0].split("/",Qt::SkipEmptyParts);
|
||||
cmdline=f2[f2.size()-1];
|
||||
for(int j=0;j<cmds.size();j++) {
|
||||
if(cmdline==cmds[j]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user