Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 49b567870165d8c28ab664cbe15c48aa > files > 2

gpart-0.1h-alt6.src.rpm

diff -ruNw gpart-0.1h.alt/src/gm_ext2.c gpart-0.1h.deb/src/gm_ext2.c
--- gpart-0.1h.alt/src/gm_ext2.c	2001-02-07 21:08:08 +0300
+++ gpart-0.1h.deb/src/gm_ext2.c	2008-04-01 01:38:13 +0400
@@ -121,9 +121,10 @@
 
 	/*
 	 * current mount count shouldn't be greater than max+20
+	 * but ext3 usually has s_max_mnt_count==-1
 	 */
 
-	if (sb->s_mnt_count > sb->s_max_mnt_count + 20)
+	if ((sb->s_max_mnt_count!=-1)&&(sb->s_mnt_count > sb->s_max_mnt_count + 20))
 		return (1);
 
 	/*