try to make Utility.Mounts portable

This is an unholy mashup, but it just might work. It works on Linux,
that's all I've tested. :)
This commit is contained in:
Joey Hess 2012-07-19 20:38:58 -04:00
parent d5051ec088
commit 107a7b9388
7 changed files with 190 additions and 42 deletions

View file

@ -82,7 +82,7 @@ type MountPoints = S.Set FilePath
{- Reads mtab, getting the current set of mount points. -}
currentMountPoints :: IO MountPoints
currentMountPoints = S.fromList . map mnt_dir <$> read_mtab
currentMountPoints = S.fromList . map mnt_dir <$> getMounts
{- Finds new mount points, given an old and a new set. -}
newMountPoints :: MountPoints -> MountPoints -> MountPoints