diff options
Diffstat (limited to 'usr.sbin/sysinstall/tape.c')
-rw-r--r-- | usr.sbin/sysinstall/tape.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/tape.c b/usr.sbin/sysinstall/tape.c index a77cf0c..31c99dd 100644 --- a/usr.sbin/sysinstall/tape.c +++ b/usr.sbin/sysinstall/tape.c @@ -59,8 +59,11 @@ mediaInitTape(Device *dev) msgDebug("Tape init routine called for %s (private dir is %s)\n", dev->name, dev->private); Mkdir(dev->private); - if (chdir(dev->private)) + if (chdir(dev->private)) { + msgConfirm("Unable to CD to %s before extracting tape!\n" + "Tape media not selected.", dev->private); return FALSE; + } /* We know the tape is already in the drive, so go for it */ msgNotify("Attempting to extract from %s...", dev->description); if (!strcmp(dev->name, "rft0")) @@ -73,7 +76,8 @@ mediaInitTape(Device *dev) return TRUE; } else - msgConfirm("Tape extract command failed with status %d!", i); + msgConfirm("Tape extract command failed with status %d!\n" + "Unable to use tape media.", i); return FALSE; } |