Date: Sat, 29 Nov 2008 02:28:06 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185422 - head/sbin/mount_msdosfs Message-ID: <200811290228.mAT2S6jR036290@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Sat Nov 29 02:28:05 2008 New Revision: 185422 URL: http://svn.freebsd.org/changeset/base/185422 Log: 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). Modified: head/sbin/mount_msdosfs/mount_msdosfs.c Modified: head/sbin/mount_msdosfs/mount_msdosfs.c ============================================================================== --- head/sbin/mount_msdosfs/mount_msdosfs.c Fri Nov 28 23:44:13 2008 (r185421) +++ head/sbin/mount_msdosfs/mount_msdosfs.c Sat Nov 29 02:28:05 2008 (r185422) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811290228.mAT2S6jR036290>