summaryrefslogtreecommitdiffstats
path: root/sbin/mount_msdosfs
diff options
context:
space:
mode:
authoravatar <avatar@FreeBSD.org>2005-11-23 19:52:14 +0000
committeravatar <avatar@FreeBSD.org>2005-11-23 19:52:14 +0000
commitd45ac37ecdbe6d680d99e547cb625d8a4fc849e9 (patch)
treec9cc18cc76216cd080cf22e857c24838a6193546 /sbin/mount_msdosfs
parent10794dc0a132b6d8feeb85010fa0324fb96d3eb6 (diff)
downloadFreeBSD-src-d45ac37ecdbe6d680d99e547cb625d8a4fc849e9.zip
FreeBSD-src-d45ac37ecdbe6d680d99e547cb625d8a4fc849e9.tar.gz
- Adding the missing 'W' option back which was accidentally removed
in rev1.37. - Fixing a core dump inside build_iovec_argf by providing a !NULL format string to vsnprintf(3). Reviewed by: rodrigc
Diffstat (limited to 'sbin/mount_msdosfs')
-rw-r--r--sbin/mount_msdosfs/mount_msdosfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c
index 351dfac..962f708 100644
--- a/sbin/mount_msdosfs/mount_msdosfs.c
+++ b/sbin/mount_msdosfs/mount_msdosfs.c
@@ -90,7 +90,7 @@ main(int argc, char **argv)
mntflags = set_gid = set_uid = set_mask = set_dirmask = 0;
- while ((c = getopt(argc, argv, "sl9u:g:m:M:o:L:D:")) != -1) {
+ while ((c = getopt(argc, argv, "sl9u:g:m:M:o:L:D:W:")) != -1) {
switch (c) {
case 's':
build_iovec(&iov, &iovlen, "shortnames", NULL, (size_t)-1);
@@ -99,7 +99,7 @@ main(int argc, char **argv)
build_iovec(&iov, &iovlen, "longnames", NULL, (size_t)-1);
break;
case '9':
- build_iovec_argf(&iov, &iovlen, "nowin95", NULL, (size_t)-1);
+ build_iovec_argf(&iov, &iovlen, "nowin95", "", (size_t)-1);
break;
case 'u':
uid = a_uid(optarg);
OpenPOWER on IntegriCloud