aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/lsb/mount.c')
-rw-r--r--toys/lsb/mount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/toys/lsb/mount.c b/toys/lsb/mount.c
index 525d0ab1..daf2edca 100644
--- a/toys/lsb/mount.c
+++ b/toys/lsb/mount.c
@@ -179,7 +179,10 @@ static void mount_filesystem(char *dev, char *dir, char *type,
if (fp && !buf) {
size_t i;
- if (getline(&buf, &i, fp)<0) break;
+ if (getline(&buf, &i, fp)<0) {
+ error_msg("%s: need -t", dev);
+ break;
+ }
type = buf;
// skip nodev devices
if (!isspace(*type)) {