From 75eea7d5aa6a7eb69fd842e376932fbf45423228 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 7 May 2017 22:48:44 -0500 Subject: Error if we can't autodetect filesystem type. --- toys/lsb/mount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.3