Changeset fefc988


Ignore:
Timestamp:
02/11/14 08:02:11 (7 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
d62db8b
Parents:
a6c7ac9
Message:

Just for completeness, make sure that the /etc/passwd file gets closed after reading system users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-backend.cpp

    r7b61db6 rfefc988  
    469469  usernameList.clear(); displaynameList.clear(); homedirList.clear(); 
    470470  //Get all the users from the file "/etc/passwd" 
    471   QStringList uList;// = pcbsd::Utils::runShellCommand("cat /etc/passwd"); 
     471  QStringList uList; 
    472472  QFile PWF("/etc/passwd"); 
    473473  if( PWF.open(QIODevice::ReadOnly | QIODevice::Text) ){ 
     
    477477      uList << QString( in.readLine() ); 
    478478    } 
     479    PWF.close();     
    479480  } 
    480481  //Remove all users that have: 
Note: See TracChangeset for help on using the changeset viewer.