mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Noticed the following error message:
mount_msdosfs: /dev/cf0s1: : Operation not supported by device and thought I'd fix it to be: mount_msdosfs: /dev/cf0s1: Operation not supported by device Not sure why errmsg isn't getting filled in, or why this error is even happening at all... (fsck_msdosfs is clean, and I can mount this same CF elsewhere).
This commit is contained in:
parent
1e7d7466b7
commit
44e6d7240a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185422
|
@ -218,8 +218,12 @@ main(int argc, char **argv)
|
|||
build_iovec_argf(&iov, &iovlen, "mask", "%u", mask);
|
||||
build_iovec_argf(&iov, &iovlen, "dirmask", "%u", dirmask);
|
||||
|
||||
if (nmount(iov, iovlen, mntflags) < 0)
|
||||
err(1, "%s: %s", dev, errmsg);
|
||||
if (nmount(iov, iovlen, mntflags) < 0) {
|
||||
if (errmsg[0])
|
||||
err(1, "%s: %s", dev, errmsg);
|
||||
else
|
||||
err(1, "%s", dev);
|
||||
}
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue