Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37488665
en ru br
ALT Linux repos
S:4.2-alt2
5.0: 2.11-alt5
4.1: 2.11-alt4
4.0: 2.11-alt4
3.0: 2.11-alt3

Group :: File tools
RPM: dosfstools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: dosfstools-2.10-noumount-subfs.patch
Download


--- 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);
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin