bug fix by Szaka

(Logical change 1.35)
edge.strict_endians
cantab.net!aia21 2002-12-09 16:09:32 +00:00
parent 9e79b61437
commit 65b72f98e1
1 changed files with 4 additions and 1 deletions

View File

@ -786,8 +786,11 @@ void mount_volume()
}
if (!(vol = ntfs_mount(opt.volume, opt.ro_flag))) {
int err = errno;
perr_printf("ntfs_mount failed");
if (errno == EINVAL) {
if (err == EINVAL) {
printf("Apparently device '%s' doesn't have a "
"valid NTFS. Maybe you selected\nthe whole "
"disk instead of a partition (e.g. /dev/hda, "