fixed: a small problem in mountparser (it coused core dumped when there was a wrong mount point supplied)

fixed: 'default' funtion can take a directory now (there was an error early)


git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@497 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2009-04-20 21:10:31 +00:00
parent e778903dab
commit e94ccc86f8
4 changed files with 54 additions and 25 deletions

View File

@@ -92,7 +92,7 @@ void MountParser::ReadMountPoint()
}
else
{
err == Error::no_mountpoint;
err = Error::no_mountpoint;
log << log1 << "MP: there is no such a mount point: " << temp << logend;
}
}

View File

@@ -16,7 +16,7 @@ void Mounts::ReadMounts()
MountParser mp;
// !! tymczasowo - bedzie odczyt z bazy z /etc/fstab
std::string temp = "thread /forum";
std::string temp = "thread /news";
Error err = mp.Parse(temp, mount_table);