From d9028f52ae8e4ef319cfe37dce82ddc0cfefe7ee Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 13 Jul 2000 11:09:53 +0000 Subject: * mount.cc (mount_already_exists): Additional warning message if mount point exists with another mount type. --- winsup/utils/ChangeLog | 5 +++++ winsup/utils/mount.cc | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'winsup/utils') diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index fb16211..29a83f2 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 13 13:02:00 2000 Corinna Vinschen + + * mount.cc (mount_already_exists): Additional warning message + if mount point exists with another mount type. + Sat Jul 1 00:19:27 2000 Christopher Faylor * Makefile.in: Find getopt.c in cygwin/lib subdirectory. diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc index e41038f..6a981cf 100644 --- a/winsup/utils/mount.cc +++ b/winsup/utils/mount.cc @@ -217,6 +217,12 @@ mount_already_exists (const char *posix_path, int flags) found_matching = 1; break; } + else if (strchr ("su", p->mnt_type[0])) + { + fprintf (stderr, "%s: warning -- there's already a %s mount point to '%s'.\n", progname, p->mnt_type, posix_path); + fprintf (stderr, "%*s (user mount points cover system mount points!)\n", strlen (progname), " "); + break; + } else { fprintf (stderr, "%s: warning -- couldn't determine mount type.\n", progname); -- cgit v1.1