Returned unmount errors in ntfs-3g.probe (Diego Elio Petteno)

ntfs-3g.probe is used to get information about mounting errors, this
extends the use for unmounting errors.
edge.strict_endians
Jean-Pierre André 2012-01-23 17:34:19 +01:00
parent 528b4303b2
commit d85675bf6d
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ static int ntfs_open(const char *device)
if (!vol)
ret = ntfs_volume_error(errno);
ntfs_umount(vol, FALSE);
if (ret == 0 && ntfs_umount(vol, FALSE) == -1)
ret = ntfs_volume_error(errno);
return ret;
}