Date: Fri, 20 Jan 2012 12:59:12 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r230377 - head/sbin/mount Message-ID: <201201201259.q0KCxClE042586@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jh Date: Fri Jan 20 12:59:12 2012 New Revision: 230377 URL: http://svn.freebsd.org/changeset/base/230377 Log: Don't print the nmount(2) provided error message if it is empty. Modified: head/sbin/mount/mount_fs.c Modified: head/sbin/mount/mount_fs.c ============================================================================== --- head/sbin/mount/mount_fs.c Fri Jan 20 12:52:38 2012 (r230376) +++ head/sbin/mount/mount_fs.c Fri Jan 20 12:59:12 2012 (r230377) @@ -129,7 +129,10 @@ mount_fs(const char *vfstype, int argc, build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); if (nmount(iov, iovlen, mntflags) == -1) { - warn("%s: %s", dev, errmsg); + if (*errmsg != '\0') + warn("%s: %s", dev, errmsg); + else + warn("%s", dev); return (1); } return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201201259.q0KCxClE042586>