diff options
author | Rob Landley <rob@landley.net> | 2017-05-07 22:48:44 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-05-07 22:48:44 -0500 |
commit | 75eea7d5aa6a7eb69fd842e376932fbf45423228 (patch) | |
tree | 3102a782b4ebf25a106a34f18c4d3b3ca37347a7 /toys | |
parent | be3e318a591be62e8f670b8d78a0a2716eb78510 (diff) | |
download | toybox-75eea7d5aa6a7eb69fd842e376932fbf45423228.tar.gz |
Error if we can't autodetect filesystem type.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/lsb/mount.c | 5 |
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)) { |