aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb/mount.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-05-07 22:48:44 -0500
committerRob Landley <rob@landley.net>2017-05-07 22:48:44 -0500
commit75eea7d5aa6a7eb69fd842e376932fbf45423228 (patch)
tree3102a782b4ebf25a106a34f18c4d3b3ca37347a7 /toys/lsb/mount.c
parentbe3e318a591be62e8f670b8d78a0a2716eb78510 (diff)
downloadtoybox-75eea7d5aa6a7eb69fd842e376932fbf45423228.tar.gz
Error if we can't autodetect filesystem type.
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)) {