* mount.cc (mount_already_exists): Additional warning message

if mount point exists with another mount type.
This commit is contained in:
Corinna Vinschen 2000-07-13 11:09:53 +00:00
parent a8602abba3
commit d9028f52ae
2 changed files with 11 additions and 0 deletions

View File

@ -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> Sat Jul 1 00:19:27 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.in: Find getopt.c in cygwin/lib subdirectory. * Makefile.in: Find getopt.c in cygwin/lib subdirectory.

View File

@ -217,6 +217,12 @@ mount_already_exists (const char *posix_path, int flags)
found_matching = 1; found_matching = 1;
break; 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 else
{ {
fprintf (stderr, "%s: warning -- couldn't determine mount type.\n", progname); fprintf (stderr, "%s: warning -- couldn't determine mount type.\n", progname);