kdf: ignores 'LABEL=' lines

(legacy RedHat patch)
(cherry picked from commit 31a0d1795d)
v3.5.13-sru
Francois Andriot 11 years ago committed by Slávek Banko
parent d8c2c12405
commit 63d18453b7

@ -183,8 +183,9 @@ TQFile f(FSTAB);
while (! t.eof()) {
s=t.readLine();
s=s.simplifyWhiteSpace();
if ( (!s.isEmpty() ) && (s.find(DELIMITER)!=0) ) {
if ( (!s.isEmpty() ) && (s.find(DELIMITER)!=0) && (s.find("LABEL=")!=0) ) {
// not empty or commented out by '#'
// skip LABEL entries as long as kdf can't handle them properly
// kdDebug() << "GOT: [" << s << "]" << endl;
disk = new DiskEntry();// Q_CHECK_PTR(disk);
disk->setMounted(FALSE);

Loading…
Cancel
Save