From 4ad14a53da79108882420e88ad839c929da5be8f Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 12 Jan 2001 14:19:06 +0000 Subject: - fix behaviour with bad ISO images (DISK installs) - better dialogs for DISK installs --- mdk-stage1/mount.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/mount.c') diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index 7ee55832f..bcdc069ca 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -172,8 +172,10 @@ int my_mount(char *dev, char *location, char *fs) rc = mount(dev, location, fs, flags, opts); - if (rc != 0) - log_perror(dev); + if (rc != 0) { + log_perror("mount failed"); + rmdir(location); + } return rc; } -- cgit v1.2.1