diff options
author | Francois Andriot <francois.andriot@free.fr> | 2013-02-17 12:43:57 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-02-17 12:43:57 +0100 |
commit | 31a0d1795d28d56e26ea5682a557753dd420a1ab (patch) | |
tree | ae649876b71199a4a1b728a219c94ab9e738f5a1 /kdf/disklist.cpp | |
parent | 05de9a8647bc8c359831ccfdbbbaa12dea83d89b (diff) | |
download | tdeutils-31a0d1795d28d56e26ea5682a557753dd420a1ab.tar.gz tdeutils-31a0d1795d28d56e26ea5682a557753dd420a1ab.zip |
kdf: ignores 'LABEL=' lines
(legacy RedHat patch)
Diffstat (limited to 'kdf/disklist.cpp')
-rw-r--r-- | kdf/disklist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kdf/disklist.cpp b/kdf/disklist.cpp index b98081c..3526999 100644 --- a/kdf/disklist.cpp +++ b/kdf/disklist.cpp @@ -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();// TQ_CHECK_PTR(disk); disk->setMounted(FALSE); |