kdf: ignores 'LABEL=' lines

(legacy RedHat patch)
pull/1/head
Francois Andriot 11 years ago committed by Slávek Banko
parent 05de9a8647
commit 31a0d1795d

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

Loading…
Cancel
Save