Changeset 3432a95


Ignore:
Timestamp:
02/11/14 10:53:30 (5 months ago)
Author:
Kris Moore <kris@…>
Branches:
releng/10.0
Children:
94f8116
Parents:
cf8eab0
git-author:
Ken Moore <ken@…> (02/11/14 08:02:11)
git-committer:
Kris Moore <kris@…> (02/11/14 10:53:30)
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

    rcf8eab0 r3432a95  
    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.