Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 61d96b330bb9ab9f0af5be59b9457aa5 > files > 1

dosfstools-2.11-alt4.src.rpm

--- dosfstools-2.10/mkdosfs/mkdosfs.c~	2004-07-20 13:58:43 +0400
+++ dosfstools-2.10/mkdosfs/mkdosfs.c	2004-07-20 14:02:51 +0400
@@ -596,7 +596,10 @@ check_mount (char *device_name)
     return;
   while ((mnt = getmntent (f)) != NULL)
     if (strcmp (device_name, mnt->mnt_fsname) == 0)
+    {
+	if ( (strcmp("subfs", mnt->mnt_type) != 0) && (strcmp("supermount", mnt->mnt_type) != 0) )
       die ("%s contains a mounted file system.");
+    }
   endmntent (f);
 }