Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-07-13 15:09:53 +0400
committerCorinna Vinschen <corinna@vinschen.de>2000-07-13 15:09:53 +0400
commitd9028f52ae8e4ef319cfe37dce82ddc0cfefe7ee (patch)
tree7de0b6b9b573a4a1354837ddb82871b1a792378d
parenta8602abba3af302d84a88c0de280a7169c5e9d31 (diff)
* mount.cc (mount_already_exists): Additional warning message
if mount point exists with another mount type.
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/mount.cc6
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index fb1621113..29a83f243 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul 13 13:02:00 2000 Corinna Vinschen <corinna@vinschen.de>
+
+ * 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 <cgf@cygnus.com>
* Makefile.in: Find getopt.c in cygwin/lib subdirectory.
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index e41038f4a..6a981cfcd 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);