From 5b548564142e29238927fdbbb26258d0b1e16d55 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Tue, 6 Feb 2007 05:57:40 +0000 Subject: [PATCH] Print warning that "-t msdos" is deprecated and being converted to "-t msdosfs". The conversion has been happening since 1.43, but no equivalent conversion happens in "umount -t", which led to some confusion with some users. PR: 79296 Submitted by: Nobuhiro Yasutomi --- sbin/mount/mount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index df8d3ff57b9d..70a7b42e6dd5 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -531,8 +531,11 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags, optbuf = catopt(optbuf, "update"); /* Compatibility glue. */ - if (strcmp(vfstype, "msdos") == 0) + if (strcmp(vfstype, "msdos") == 0) { + warnx( + "Using \"-t msdosfs\", since \"-t msdos\" is deprecated."); vfstype = "msdosfs"; + } /* Construct the name of the appropriate mount command */ (void)snprintf(execname, sizeof(execname), "mount_%s", vfstype);