resolve symlinks when reading device nodes from fstab

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1130866
This commit is contained in:
Volker Lanz 2010-05-26 16:52:20 +00:00
parent 88494c8607
commit b7dfc67ca9
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ bool EditMountPointDialogWidget::readMountpoints(const QString& filename)
type = MountEntry::label;
device = findBlkIdDevice("LABEL", QString(device).remove("LABEL="));
}
else if (device.startsWith("/"))
device = QFile::symLinkTarget(device);
if (!device.isEmpty())
{